Bug 580995 - Fennec opens new tabs too aggressively [r=vingtetun]
authorMark Finkle <mfinkle@mozilla.com>
Thu, 22 Jul 2010 10:30:00 -0400
changeset 66383 fc4f8951e11c50d516a48097695e615e0aa1e1fd
parent 66382 4aa88b332feb6f60407757b1e8c7d39e2da53fc6
child 66384 3fba1d5da9cb31053b50e3359ceef52e50434792
push id1
push userroot
push dateTue, 26 Apr 2011 22:38:44 +0000
treeherdermozilla-beta@bfdb6e623a36 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersvingtetun
bugs580995
Bug 580995 - Fennec opens new tabs too aggressively [r=vingtetun]
mobile/chrome/content/browser-ui.js
--- a/mobile/chrome/content/browser-ui.js
+++ b/mobile/chrome/content/browser-ui.js
@@ -495,17 +495,17 @@ var BrowserUI = {
     let fixupFlags = Ci.nsIURIFixup.FIXUP_FLAG_ALLOW_KEYWORD_LOOKUP;
     let uri = gURIFixup.createFixupURI(aURI, fixupFlags);
 
     // We need to keep about: pages opening in new "local" tabs. We also want to spawn
     // new "remote" tabs if opening web pages from a "local" about: page.
     let currentURI = getBrowser().currentURI;
     let useLocal = Util.isLocalScheme(uri.spec);
     let hasLocal = Util.isLocalScheme(currentURI.spec);
-    if (useLocal || hasLocal != useLocal) {
+    if (hasLocal != useLocal) {
       Browser.addTab(uri.spec, true);
     } else {
       let loadFlags = Ci.nsIWebNavigation.LOAD_FLAGS_ALLOW_THIRD_PARTY_FIXUP;
       getBrowser().loadURIWithFlags(uri.spec, loadFlags, null, null);
     }
 
     gHistSvc.markPageAsTyped(uri);
   },