Skip to content

Commit 2abba4d

Browse files
committed
fix: Fixed empty tabs appearing on the 'all tabs' panel, b=closes #10610, c=common
1 parent 32944f1 commit 2abba4d

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
diff --git a/browser/components/tabbrowser/TabsList.sys.mjs b/browser/components/tabbrowser/TabsList.sys.mjs
2+
index 97990af166b63cae4b0343c77da5084850890504..b58d20eb3db82867030292625d45277afce1bbea 100644
3+
--- a/browser/components/tabbrowser/TabsList.sys.mjs
4+
+++ b/browser/components/tabbrowser/TabsList.sys.mjs
5+
@@ -87,7 +87,7 @@ class TabsListBase {
6+
/** @type {function(MozTabbrowserTab):boolean} */
7+
this.filterFn = onlyHiddenTabs
8+
? tab => filterFn(tab) && tab.hidden
9+
- : filterFn;
10+
+ : tab => !tab.hasAttribute("zen-empty-tab") && filterFn(tab);
11+
/** @type {Element} */
12+
this.containerNode = containerNode;
13+
/** @type {Element|null} */

src/zen/common/styles/zen-single-components.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ body > #confetti {
4343
}
4444

4545
/* Firefox View */
46-
#firefox-view-button {
46+
#firefox-view-button,
47+
#wrapper-firefox-view-button {
4748
display: none !important;
4849
}
4950

0 commit comments

Comments
 (0)