Don't override autohide state of other windows by last window's state

This commit is contained in:
YUKI Hiroshi 2015-03-03 20:47:45 +09:00
parent f492f36b4d
commit fbc6500262
2 changed files with 0 additions and 16 deletions

View File

@ -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]);
}
}
});

View File

@ -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;