From b82b985e197b099ebbd5b9acf3d8aee93eb43ab4 Mon Sep 17 00:00:00 2001 From: Piro / SHIMODA Hiroshi Date: Sun, 5 Aug 2012 06:03:34 +0900 Subject: [PATCH] Don't use xpath-less getTabById until the TreeStyleTabBrowser object is initialized --- modules/browser.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/browser.js b/modules/browser.js index 5312c526..82725fdc 100644 --- a/modules/browser.js +++ b/modules/browser.js @@ -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);