Don't apply "auto hide" prefs for mismatched mode

This commit is contained in:
YUKI Hiroshi 2015-11-02 12:00:24 +09:00
parent 35927b1148
commit 5111cf446b

View File

@ -1089,14 +1089,16 @@ AutoHideBrowser.prototype = inherit(AutoHideBase.prototype, {
if (!this.window.TreeStyleTabService.shouldApplyNewPref('tabbar.autoHide.mode'))
return;
this.browser.setAttribute(this.kMODE+'-normal', value);
this.updateMode(value);
if (!this.window.fullScreen)
this.updateMode(value);
return;
case 'extensions.treestyletab.tabbar.autoHide.mode.fullscreen':
if (!this.window.TreeStyleTabService.shouldApplyNewPref('tabbar.autoHide.mode.fullscreen'))
return;
this.browser.setAttribute(this.kMODE+'-fullscreen', value);
this.updateMode(value);
if (this.window.fullScreen)
this.updateMode(value);
return;
case 'extensions.treestyletab.tabbar.autoShow.mousemove':