From 5521d8bf6c7880f3efee819afc0e3c56752d7469 Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Tue, 22 Mar 2011 12:00:05 -0400 Subject: [PATCH] Fix TabsInTitlebar rubbish on Windows. Closes issue #420. --- common/content/tabs.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/common/content/tabs.js b/common/content/tabs.js index f2665189..19ff98f7 100644 --- a/common/content/tabs.js +++ b/common/content/tabs.js @@ -19,6 +19,8 @@ var Tabs = Module("tabs", { this._lastBufferSwitchArgs = ""; this._lastBufferSwitchSpecial = true; + this.xulTabs = document.getElementById("tabbrowser-tabs"); + // hide tabs initially to prevent flickering when 'stal' would hide them // on startup if (config.hasTabbrowser) @@ -1013,8 +1015,13 @@ var Tabs = Module("tabs", { _("option.showtabline.safeSet")); tabs.tabStyle.enabled = false; } + if (value !== "multitab" || !dactyl.has("Gecko2")) - config.tabStrip.collapsed = false; + if (tabs.xulTabs) + tabs.xulTabs.visible = value !== "never"; + else + config.tabStrip.collapsed = false; + if (config.tabbrowser.tabContainer._positionPinnedTabs) config.tabbrowser.tabContainer._positionPinnedTabs(); return value;