Skip to content

Commit aac400c

Browse files
committed
Fix two Tabs Toolbar in Toolbar Context Menu (#39)
1 parent 233dd50 commit aac400c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

chrome/content/tabutils.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2663,6 +2663,11 @@ tabutils._hideTabBar = function() {
26632663
toolbarNodes.push(tabsToolbar);
26642664
});
26652665

2666+
if ("getTogglableToolbars" in window) // Bug 940669 [Fx29]
2667+
TU_hookCode("getTogglableToolbars", /(?=.*return.*)/, function() {
2668+
toolbarNodes = [...new Set(toolbarNodes)];
2669+
});
2670+
26662671
TU_hookCode("setToolbarVisibility", /.*setAttribute.*/, 'if (toolbar.id == "TabsToolbar") gBrowser.mTabContainer.visible = isVisible; else $&');
26672672
TU_hookCode("gBrowser.mTabContainer.updateVisibility", "{", 'if (!TU_getPref("browser.tabs.autoHide")) return;');
26682673
};

0 commit comments

Comments
 (0)