Bug 537474 - nsIBrowserDOMWindow.OPEN_CURRENTWINDOW implementation is broken. r=typo
authorDão Gottwald <dao@mozilla.com>
Sat, 02 Jan 2010 09:28:09 +0100
changeset 36814 4e8eb0e5e8c9cedc5f7ac8b7ea70626e61f7f284
parent 36813 074108bd5051490815fb2058537b0263671a00f4
child 36815 15ce1058e9cef3ce5ece7aff48254c3b44bfc362
push id10994
push userdgottwald@mozilla.com
push dateSat, 02 Jan 2010 08:29:10 +0000
treeherdermozilla-central@4e8eb0e5e8c9 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstypo
bugs537474
milestone1.9.3a1pre
Bug 537474 - nsIBrowserDOMWindow.OPEN_CURRENTWINDOW implementation is broken. r=typo
browser/base/content/browser.js
--- a/browser/base/content/browser.js
+++ b/browser/base/content/browser.js
@@ -4458,17 +4458,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) {