Bug 504475 - closing last tab shows tab bar with "Always show the tab bar" off, and browser.tabs.closeWindowWithLastTab = false. r=gavin
authorDão Gottwald <dao@mozilla.com>
Sun, 24 Jan 2010 11:20:57 +0100
changeset 37448 f077fca0d235919894a3703b553accee7ef87024
parent 37447 36a5be172c9120ae11edcd6df4e4ececb4866371
child 37449 e3cbcefd4e44f9216bb80abb1927a24a26ce61eb
push id11308
push userdgottwald@mozilla.com
push dateSun, 24 Jan 2010 11:40:56 +0000
treeherdermozilla-central@f565b53ba490 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgavin
bugs504475
milestone1.9.3a1pre
Bug 504475 - closing last tab shows tab bar with "Always show the tab bar" off, and browser.tabs.closeWindowWithLastTab = false. r=gavin
browser/base/content/tabbrowser.xml
--- a/browser/base/content/tabbrowser.xml
+++ b/browser/base/content/tabbrowser.xml
@@ -1339,17 +1339,18 @@
                                     "notificationbox");
             notificationbox.setAttribute("flex", "1");
             notificationbox.appendChild(b);
             b.setAttribute("flex", "1");
             this.mPanelContainer.appendChild(notificationbox);
 
             b.addEventListener("DOMTitleChanged", this.onTitleChanged, true);
 
-            if (this.mStrip.collapsed)
+            if (this.mStrip.collapsed &&
+                this.mTabs.length - this._removingTabs.length > 1)
               this.setStripVisibilityTo(true);
 
             // wire up a progress listener for the new browser object.
             var position = this.mTabContainer.childNodes.length-1;
             var tabListener = this.mTabProgressListener(t, b, blank);
             const filter = Components.classes["@mozilla.org/appshell/component/browser-status-filter;1"]
                                      .createInstance(Components.interfaces.nsIWebProgress);
             filter.addProgressListener(tabListener, Components.interfaces.nsIWebProgress.NOTIFY_ALL);