130337: Fix Get New Themes when browser.block.target_new_window is set. r=jfrancis sr=kin

git-svn-id: svn://10.0.0.236/trunk@129391 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
akkana%netscape.com
2002-09-12 19:35:55 +00:00
parent f90dcabeab
commit b6a27abd2f

View File

@@ -4743,10 +4743,12 @@ nsDocShell::InternalLoad(nsIURI * aURI,
//
if (mDisallowPopupWindows) {
PRBool bIsChromeOrResource = PR_FALSE;
aURI->SchemeIs("chrome", &bIsChromeOrResource);
mCurrentURI->SchemeIs("chrome", &bIsChromeOrResource);
if (!bIsChromeOrResource) {
aURI->SchemeIs("resource", &bIsChromeOrResource);
aURI->SchemeIs("chrome", &bIsChromeOrResource);
if (!bIsChromeOrResource) {
aURI->SchemeIs("resource", &bIsChromeOrResource);
}
}
if (!bIsChromeOrResource) {
if (name.EqualsIgnoreCase("_blank") ||