diff --git a/modules/autoHide.js b/modules/autoHide.js index b3ac0c23..287eeb6c 100644 --- a/modules/autoHide.js +++ b/modules/autoHide.js @@ -260,6 +260,8 @@ AutoHideBrowser.prototype = inherit(TreeStyleTabConstants, { this.showHideInternal(this.kSHOWHIDE_BY_START | aReason); b.treeStyleTab.fixTooNarrowTabbar(); + + sv.setWindowValue(this.kAUTOHIDE, true); }, end : function AHB_end() @@ -300,6 +302,9 @@ AutoHideBrowser.prototype = inherit(TreeStyleTabConstants, { if (sv.isVertical) sv.setTabStripAttribute('width', this.widthFromMode); + + if (!this.destroying) + sv.setWindowValue(this.kAUTOHIDE, false); }, notifyStatusToAllTabs : function AHB_notifyStatusToAllTabs() @@ -1309,6 +1314,8 @@ AutoHideBrowser.prototype = inherit(TreeStyleTabConstants, { destroy : function AHB_destroy() { + this.destroying = true; + this.end(); prefs.removePrefListener(this);