From 8bce1239b3024cd85326ecbf8dfd39418504ba62 Mon Sep 17 00:00:00 2001 From: YUKI Hiroshi Date: Wed, 18 Sep 2013 17:43:18 +0900 Subject: [PATCH] Detect mode of Tab Mix Plus correctly --- modules/browser.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/modules/browser.js b/modules/browser.js index c4262884..81efc649 100644 --- a/modules/browser.js +++ b/modules/browser.js @@ -1820,17 +1820,19 @@ TreeStyleTabBrowser.prototype = { var splitter = this.splitter; if (splitter.collapsed || splitter.getAttribute('state') != 'collapsed') { let shouldAutoHideForSingleTab = ( + ( // "autohide for single tab" feature is removed on Firefox 23. // https://bugzilla.mozilla.org/show_bug.cgi?id=855370 ( prefs.getDefaultPref('browser.tabs.autoHide') !== null || // but "Hide Tab Bar With One Tab" provides it. // https://addons.mozilla.org/firefox/addon/hide-tab-bar-with-one-tab/ - 'hideTabBar' in this.window || - // Tab Mix Plus also provides it. - 'TabmixTabbar' in this.window && this.window.TabmixTabbar.hideMode > 0 + 'hideTabBar' in this.window ) && prefs.getPref('browser.tabs.autoHide') + ) || + // Tab Mix Plus also provides it. + 'TabmixTabbar' in this.window && this.window.TabmixTabbar.hideMode > 0 ); this._tabStripPlaceHolder.collapsed = splitter.collapsed =