From fbc6500262748c15f827fbd4b1cdbb6c608aa83c Mon Sep 17 00:00:00 2001 From: YUKI Hiroshi Date: Tue, 3 Mar 2015 20:47:45 +0900 Subject: [PATCH] Don't override autohide state of other windows by last window's state --- modules/autoHide.js | 14 -------------- modules/browser.js | 2 -- 2 files changed, 16 deletions(-) diff --git a/modules/autoHide.js b/modules/autoHide.js index df88cd16..ddb387e5 100644 --- a/modules/autoHide.js +++ b/modules/autoHide.js @@ -1342,20 +1342,6 @@ AutoHideBrowser.prototype = inherit(AutoHideConstants, { delete this.browser; delete this.document; delete this.window; - }, - - saveCurrentState : function AHB_saveCurrentState() - { - var b = this.browser; - var prefs = { - 'tabbar.autoHide.mode' : this.getModeForNormal(b), - 'tabbar.autoHide.mode.fullscreen' : this.getModeForFullScreen(b), - }; - for (var i in prefs) - { - if (utils.getTreePref(i) != prefs[i]) - utils.setTreePref(i, prefs[i]); - } } }); diff --git a/modules/browser.js b/modules/browser.js index a653b013..f290e53b 100644 --- a/modules/browser.js +++ b/modules/browser.js @@ -2242,8 +2242,6 @@ TreeStyleTabBrowser.prototype = inherit(TreeStyleTabWindow.prototype, { saveCurrentState : function TSTBrowser_saveCurrentState() { - this.autoHide.saveCurrentState(); - var b = this.mTabBrowser; var floatingBox = this.getTabStrip(b).boxObject; var fixedBox = (this.tabStripPlaceHolder || this.getTabStrip(b)).boxObject;