Don't use xpath-less getTabById until the TreeStyleTabBrowser object is initialized
This commit is contained in:
parent
26d060919e
commit
b82b985e19
@ -55,7 +55,6 @@ function TreeStyleTabBrowser(aWindowService, aTabBrowser)
|
|||||||
this.updateTabsIndentWithDelayTabs = [];
|
this.updateTabsIndentWithDelayTabs = [];
|
||||||
this.deferredTasks = {};
|
this.deferredTasks = {};
|
||||||
|
|
||||||
this.tabsHash = {};
|
|
||||||
this.tabVisibilityChangedTabs = [];
|
this.tabVisibilityChangedTabs = [];
|
||||||
this._updateFloatingTabbarReason = 0;
|
this._updateFloatingTabbarReason = 0;
|
||||||
this.internallyTabMovingCount = 0;
|
this.internallyTabMovingCount = 0;
|
||||||
@ -604,6 +603,8 @@ TreeStyleTabBrowser.prototype = {
|
|||||||
var b = this.mTabBrowser;
|
var b = this.mTabBrowser;
|
||||||
b.tabContainer.treeStyleTab = this;
|
b.tabContainer.treeStyleTab = this;
|
||||||
|
|
||||||
|
this.tabsHash = {};
|
||||||
|
|
||||||
if (b.tabContainer.parentNode.localName == 'toolbar')
|
if (b.tabContainer.parentNode.localName == 'toolbar')
|
||||||
b.tabContainer.parentNode.classList.add(this.kTABBAR_TOOLBAR);
|
b.tabContainer.parentNode.classList.add(this.kTABBAR_TOOLBAR);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user