When Personal Titlebar ( https://addons.mozilla.org/ja/firefox/addon/personal-titlebar/ ) is installed, tree view was wrongly disabled.

This commit is contained in:
Piro / SHIMODA Hiroshi 2011-03-19 00:45:27 +09:00
parent 3eb8838ded
commit 55bfe342d2

View File

@ -2276,8 +2276,15 @@ TreeStyleTabBrowser.prototype = {
// toolbar customizing on Firefox 4 or later // toolbar customizing on Firefox 4 or later
case 'beforecustomization': case 'beforecustomization':
this.toolbarCustomizing = true;
return this.syncDestroyTabbar(); return this.syncDestroyTabbar();
case 'aftercustomization': case 'aftercustomization':
// Ignore it, because 'aftercustomization' fired not
// following to 'beforecustomization' is invalid.
// Personal Titlebar addon (or others) fires a fake
// event on its startup process.
if (!this.toolbarCustomizing) return;
this.toolbarCustomizing = false;
return this.syncReinitTabbar(); return this.syncReinitTabbar();
case 'customizationchange': case 'customizationchange':
return this.updateCustomizedTabsToolbar(); return this.updateCustomizedTabsToolbar();