Bug 537474 - nsIBrowserDOMWindow.OPEN_CURRENTWINDOW implementation is broken. r=typo
--- a/browser/base/content/browser.js
+++ b/browser/base/content/browser.js
@@ -4506,17 +4506,17 @@ nsBrowserAccess.prototype =
newWindow = browser.contentWindow;
if (needToFocusWin || (!loadInBackground && isExternal))
newWindow.focus();
break;
default : // OPEN_CURRENTWINDOW or an illegal value
newWindow = content;
if (aURI) {
let referrer = aOpener ? makeURI(aOpener.location.href) : null;
- gBrowser.loadURIWithFlag(aURI.spec, loadflags, referrer, null, null);
+ gBrowser.loadURIWithFlags(aURI.spec, loadflags, referrer, null, null);
}
if (!gPrefService.getBoolPref("browser.tabs.loadDivertedInBackground"))
content.focus();
}
return newWindow;
},
isTabContentWindow : function(aWindow)