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:
@@ -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") ||
|
||||
|
||||
Reference in New Issue
Block a user