summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2019-07-05 14:48:54 +0000
committerGitHub <noreply@github.com>2019-07-05 14:48:54 +0000
commita3ed49dde7ad33c6b934424ce86d77dc5209a97f (patch)
treec853a7cddb31ffe66400cc1fee4dd1580f76f2e3
parent28439778f7146b62331e7769d33676bd7c44c68c (diff)
parent51bf4b3df415e4f7993da8f5f8499e9b029202ec (diff)
downloadUXP-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
-rw-r--r--application/basilisk/base/content/tabbrowser.xml29
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">