diff options
author | Moonchild <moonchild@palemoon.org> | 2019-07-05 14:48:54 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-05 14:48:54 +0000 |
commit | a3ed49dde7ad33c6b934424ce86d77dc5209a97f (patch) | |
tree | c853a7cddb31ffe66400cc1fee4dd1580f76f2e3 /application | |
parent | 28439778f7146b62331e7769d33676bd7c44c68c (diff) | |
parent | 51bf4b3df415e4f7993da8f5f8499e9b029202ec (diff) | |
download | UXP-a3ed49dde7ad33c6b934424ce86d77dc5209a97f.tar UXP-a3ed49dde7ad33c6b934424ce86d77dc5209a97f.tar.gz UXP-a3ed49dde7ad33c6b934424ce86d77dc5209a97f.tar.lz UXP-a3ed49dde7ad33c6b934424ce86d77dc5209a97f.tar.xz UXP-a3ed49dde7ad33c6b934424ce86d77dc5209a97f.zip |
Merge pull request #1159 from FranklinDM/bk_alltabslist-fix
Fix broken all tabs menu listing in Basilisk
Diffstat (limited to 'application')
-rw-r--r-- | application/basilisk/base/content/tabbrowser.xml | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/application/basilisk/base/content/tabbrowser.xml b/application/basilisk/base/content/tabbrowser.xml index 0e819a3ed..85f923923 100644 --- a/application/basilisk/base/content/tabbrowser.xml +++ b/application/basilisk/base/content/tabbrowser.xml @@ -6906,21 +6906,22 @@ <handlers> <handler event="popupshowing"> <![CDATA[ - document.getElementById("alltabs_undoCloseTab").disabled = - SessionStore.getClosedTabCount(window) == 0; - - // Listen for changes in the tab bar. - tabcontainer.addEventListener("TabAttrModified", this, false); - tabcontainer.addEventListener("TabClose", this, false); - tabcontainer.mTabstrip.addEventListener("scroll", this, false); - - let tabs = gBrowser.visibleTabs; - for (var i = 0; i < tabs.length; i++) { - if (!tabs[i].pinned) - this._createTabMenuItem(tabs[i]); - } - this._updateTabsVisibilityStatus(); + document.getElementById("alltabs_undoCloseTab").disabled = + SessionStore.getClosedTabCount(window) == 0; + + var tabcontainer = gBrowser.tabContainer; + + // Listen for changes in the tab bar. + tabcontainer.addEventListener("TabAttrModified", this, false); + tabcontainer.addEventListener("TabClose", this, false); + tabcontainer.mTabstrip.addEventListener("scroll", this, false); + + let tabs = gBrowser.visibleTabs; + for (var i = 0; i < tabs.length; i++) { + if (!tabs[i].pinned) + this._createTabMenuItem(tabs[i]); } + this._updateTabsVisibilityStatus(); ]]></handler> <handler event="popuphidden"> |