mirror of
https://github.com/zen-browser/desktop.git
synced 2026-01-08 22:33:22 +00:00
32 lines
1.3 KiB
C++
32 lines
1.3 KiB
C++
diff --git a/browser/components/tabbrowser/content/browser-ctrlTab.js b/browser/components/tabbrowser/content/browser-ctrlTab.js
|
|
index 6753641cb579032306453be3f5054d7bc7661e8c..e0eda8d77637334ca30ee1842057cb43b4af2c21 100644
|
|
--- a/browser/components/tabbrowser/content/browser-ctrlTab.js
|
|
+++ b/browser/components/tabbrowser/content/browser-ctrlTab.js
|
|
@@ -252,7 +252,7 @@ var ctrlTab = {
|
|
},
|
|
|
|
get tabList() {
|
|
- return this._recentlyUsedTabs;
|
|
+ return this._recentlyUsedTabs.filter(tab => !tab.hasAttribute("pending"));
|
|
},
|
|
|
|
init: function ctrlTab_init() {
|
|
@@ -459,7 +459,7 @@ var ctrlTab = {
|
|
// If the tab is hidden, don't add it to the list unless it's selected
|
|
// (Normally hidden tabs would be unhidden when selected, but that doesn't
|
|
// happen for Firefox View).
|
|
- if (aTab.closing || (aTab.hidden && !aTab.selected)) {
|
|
+ if (aTab.closing || (aTab.hidden && !aTab.selected) || aTab.hasAttribute("zen-empty-tab")) {
|
|
return;
|
|
}
|
|
|
|
@@ -761,7 +761,7 @@ var ctrlTab = {
|
|
_initRecentlyUsedTabs() {
|
|
this._recentlyUsedTabs = Array.prototype.filter.call(
|
|
gBrowser.tabs,
|
|
- tab => !tab.closing && !tab.hidden
|
|
+ tab => !tab.closing && !tab.hidden && !tab.hasAttribute("zen-empty-tab")
|
|
);
|
|
this._sortRecentlyUsedTabs();
|
|
},
|