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 33472 83efa96f014317080686f984c08b22f0106a1551
parent 33471 020a9d1400babeb003011cf76454cbf198f5a713
child 33473 f4b78e19d0b7701c6972e323a8de09a1c6a5d5b2
push id988
push userdgottwald@mozilla.com
push dateMon, 04 Jan 2010 16:47:55 +0000
reviewerstypo
bugs537474
milestone1.9.2b6pre
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
@@ -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)