From a99c586d98b7bcce0c6b167f5cd243bad3051386 Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Fri, 24 Sep 2010 10:54:06 -0400 Subject: [PATCH] Fix stal=0 on FF4. --- common/content/configbase.js | 3 +++ common/content/tabs.js | 5 +++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/common/content/configbase.js b/common/content/configbase.js index 07473baa..7a1e2ab3 100644 --- a/common/content/configbase.js +++ b/common/content/configbase.js @@ -127,6 +127,9 @@ const ConfigBase = Class(ModuleBase, { */ scripts: [], + get tabStrip() + Class.replaceProperty(this, "tabStrip", document.getElementById("TabsToolbar") || this.tabbrowser.mTabContainer), + /** * @property {string} The leaf name of any temp files created by * {@link io.createTempFile}. diff --git a/common/content/tabs.js b/common/content/tabs.js index ac0465e0..f0a2a82a 100644 --- a/common/content/tabs.js +++ b/common/content/tabs.js @@ -31,7 +31,8 @@ const Tabs = Module("tabs", { // hide tabs initially to prevent flickering when 'stal' would hide them // on startup if (config.hasTabbrowser) - config.tabbrowser.mTabContainer.collapsed = true; // FIXME: see 'stal' comment + config.tabStrip.collapsed = true; // FIXME: see 'stal' comment + }, _updateTabCount: function () { @@ -987,7 +988,7 @@ const Tabs = Module("tabs", { // don't have to fight against the host app's attempts to keep // it open - hack! Adding a filter watch to mStrip is probably // the cleanest solution. - let tabStrip = config.tabbrowser.mTabContainer; + let tabStrip = config.tabStrip; if (value == 0) tabStrip.collapsed = true;