diff --git a/modules/browser.js b/modules/browser.js index 102f94ea..bde7fac9 100644 --- a/modules/browser.js +++ b/modules/browser.js @@ -1748,7 +1748,7 @@ TreeStyleTabBrowser.prototype = { if (splitter.collapsed || splitter.getAttribute('state') != 'collapsed') { this._tabStripPlaceHolder.collapsed = splitter.collapsed = - (this.getPref('browser.tabs.autoHide') && this.getTabs(this.mTabBrowser).length == 1); + (this.getPref('browser.tabs.autoHide') && this.getExistingTabsCount() == 1); } var strip = this.tabStrip; @@ -1849,6 +1849,10 @@ TreeStyleTabBrowser.prototype = { else this.positionPinnedTabsWithDelay(null, null, aReason & this.kTABBAR_UPDATE_BY_AUTOHIDE); }, + getExistingTabsCount : function TSTBrowser_getTabsCount() + { + return this.getAllTabs(this.mTabBrowser).length - this.mTabBrowser._removingTabs.length; + }, _updateFloatingTabbarResizer : function TSTBrowser_updateFloatingTabbarResizer(aSize) {