On Minefield, previewing of a persona broke appearance of the floating tab bar. (fix for https://github.com/piroor/treestyletab/issues#issue/5 )
This commit is contained in:
parent
b656dd9f1c
commit
9b7bae9a23
@ -637,8 +637,9 @@ TreeStyleTabBrowser.prototype = {
|
|||||||
|
|
||||||
this.ObserverService.addObserver(this, this.kTOPIC_INDENT_MODIFIED, false);
|
this.ObserverService.addObserver(this, this.kTOPIC_INDENT_MODIFIED, false);
|
||||||
this.ObserverService.addObserver(this, this.kTOPIC_COLLAPSE_EXPAND_ALL, false);
|
this.ObserverService.addObserver(this, this.kTOPIC_COLLAPSE_EXPAND_ALL, false);
|
||||||
this.ObserverService.addObserver(this, 'private-browsing-change-granted', false);
|
|
||||||
this.ObserverService.addObserver(this, this.kTOPIC_CHANGE_TREEVIEW_AVAILABILITY, false);
|
this.ObserverService.addObserver(this, this.kTOPIC_CHANGE_TREEVIEW_AVAILABILITY, false);
|
||||||
|
this.ObserverService.addObserver(this, 'private-browsing-change-granted', false);
|
||||||
|
this.ObserverService.addObserver(this, 'lightweight-theme-styling-update', false);
|
||||||
this.addPrefListener(this);
|
this.addPrefListener(this);
|
||||||
|
|
||||||
this.autoHide;
|
this.autoHide;
|
||||||
@ -1549,8 +1550,9 @@ TreeStyleTabBrowser.prototype = {
|
|||||||
|
|
||||||
this.ObserverService.removeObserver(this, this.kTOPIC_INDENT_MODIFIED);
|
this.ObserverService.removeObserver(this, this.kTOPIC_INDENT_MODIFIED);
|
||||||
this.ObserverService.removeObserver(this, this.kTOPIC_COLLAPSE_EXPAND_ALL);
|
this.ObserverService.removeObserver(this, this.kTOPIC_COLLAPSE_EXPAND_ALL);
|
||||||
this.ObserverService.removeObserver(this, 'private-browsing-change-granted');
|
|
||||||
this.ObserverService.removeObserver(this, this.kTOPIC_CHANGE_TREEVIEW_AVAILABILITY);
|
this.ObserverService.removeObserver(this, this.kTOPIC_CHANGE_TREEVIEW_AVAILABILITY);
|
||||||
|
this.ObserverService.removeObserver(this, 'private-browsing-change-granted');
|
||||||
|
this.ObserverService.removeObserver(this, 'lightweight-theme-styling-update');
|
||||||
this.removePrefListener(this);
|
this.removePrefListener(this);
|
||||||
|
|
||||||
delete this.mTabBrowser;
|
delete this.mTabBrowser;
|
||||||
@ -1618,9 +1620,11 @@ TreeStyleTabBrowser.prototype = {
|
|||||||
|
|
||||||
case 'private-browsing-change-granted':
|
case 'private-browsing-change-granted':
|
||||||
this.collapseExpandAllSubtree(false, true);
|
this.collapseExpandAllSubtree(false, true);
|
||||||
window.setTimeout(function(aSelf) {
|
this.updateFloatingTabbar(this.kTABBAR_UPDATE_BY_PRIVATE_BROWSING);
|
||||||
aSelf.updateFloatingTabbar(aSelf.kTABBAR_UPDATE_BY_PRIVATE_BROWSING);
|
break;
|
||||||
}, 0, this);
|
|
||||||
|
case 'lightweight-theme-styling-update':
|
||||||
|
this.updateFloatingTabbar(this.kTABBAR_UPDATE_BY_WINDOW_RESIZE);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case this.kTOPIC_CHANGE_TREEVIEW_AVAILABILITY:
|
case this.kTOPIC_CHANGE_TREEVIEW_AVAILABILITY:
|
||||||
|
Loading…
Reference in New Issue
Block a user