Bug 596717 - Hide new browsers on creation [r=mfinkle]
authorMatt Brubeck <mbrubeck@mozilla.com>
Thu, 23 Sep 2010 10:07:28 -0700
changeset 66699 7daae378d44cfca63f7c4242db2500ef3cef1f8f
parent 66698 a31a0fa3cb9e2ce68e66201001c9b5e13b5816aa
child 66700 cd298ee49cc241c4edd1391c3ff2bece145b911a
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)
reviewersmfinkle
bugs596717
Bug 596717 - Hide new browsers on creation [r=mfinkle]
mobile/chrome/content/browser.js
--- a/mobile/chrome/content/browser.js
+++ b/mobile/chrome/content/browser.js
@@ -2446,16 +2446,17 @@ Tab.prototype = {
     browser.setAttribute("type", "content");
 
     let useRemote = Services.prefs.getBoolPref("browser.tabs.remote");
     let useLocal = Util.isLocalScheme(aURI);
     browser.setAttribute("remote", (!useLocal && useRemote) ? "true" : "false");
 
     // Append the browser to the document, which should start the page load
     document.getElementById("browsers").appendChild(browser);
+    browser.style.display = "none";
 
     // stop about:blank from loading
     browser.stop();
 
 
     let self = this;
     browser.messageManager.addMessageListener("MozScrolledAreaChanged", function() {
       self.updateDefaultZoomLevel();