Bug 536940 - Port |Bug 468053 - gBrowser.addTab not treat null/undefined Uri as blank tab leading to extra work at least when restoring session| to SeaMonkey; (Av1a) tabbrowser.xml: check for |!aURI| too.
authorSerge Gautherie <sgautherie.bz@free.fr>
Mon, 28 Dec 2009 17:29:16 +0100
changeset 4595 2ab0fbab5907f40af9a9569c072f2d810ef09362
parent 4594 9ff7974b294d5515851cf0e3905a9cebf05817b4
child 4596 07b1d024d90336414b76d21446b068d2f06cdfff
push id3591
push usersgautherie.bz@free.fr
push dateMon, 28 Dec 2009 16:31:25 +0000
treeherdercomm-central@2ab0fbab5907 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs536940, 468053
Bug 536940 - Port |Bug 468053 - gBrowser.addTab not treat null/undefined Uri as blank tab leading to extra work at least when restoring session| to SeaMonkey; (Av1a) tabbrowser.xml: check for |!aURI| too. r=neil.
suite/browser/tabbrowser.xml
--- a/suite/browser/tabbrowser.xml
+++ b/suite/browser/tabbrowser.xml
@@ -1180,17 +1180,17 @@
         <parameter name="aFocusNewTab"/>
         <parameter name="aFlags"/>
         <body>
           <![CDATA[
             this._browsers = null; // invalidate cache
 
             var t = this.referenceTab.cloneNode(true);
 
-            var blank = (aURI == "about:blank");
+            var blank = !aURI || aURI == "about:blank";
 
             if (!blank)
               t.setAttribute("label", aURI);
 
             this.mTabContainer.appendChild(t);
 
             var b = document.createElementNS("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul",
                                              "browser");