Don't use xpath-less getTabById until the TreeStyleTabBrowser object is initialized

This commit is contained in:
Piro / SHIMODA Hiroshi 2012-08-05 06:03:34 +09:00
parent 26d060919e
commit b82b985e19

View File

@ -55,7 +55,6 @@ function TreeStyleTabBrowser(aWindowService, aTabBrowser)
this.updateTabsIndentWithDelayTabs = [];
this.deferredTasks = {};
this.tabsHash = {};
this.tabVisibilityChangedTabs = [];
this._updateFloatingTabbarReason = 0;
this.internallyTabMovingCount = 0;
@ -604,6 +603,8 @@ TreeStyleTabBrowser.prototype = {
var b = this.mTabBrowser;
b.tabContainer.treeStyleTab = this;
this.tabsHash = {};
if (b.tabContainer.parentNode.localName == 'toolbar')
b.tabContainer.parentNode.classList.add(this.kTABBAR_TOOLBAR);