From 7688a11ef994cd2b5a8b3c78e7b111d304c8aa65 Mon Sep 17 00:00:00 2001 From: "mr. m" Date: Tue, 15 Apr 2025 19:24:24 +0200 Subject: [PATCH] fix: closes #7365 - Fixed unloaded tabs appearing on ctrl+Tab panel, r=no-component --- .../tabbrowser/content/browser-ctrlTab-js.patch | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/browser/components/tabbrowser/content/browser-ctrlTab-js.patch b/src/browser/components/tabbrowser/content/browser-ctrlTab-js.patch index 1cb993015..4ab641d43 100644 --- a/src/browser/components/tabbrowser/content/browser-ctrlTab-js.patch +++ b/src/browser/components/tabbrowser/content/browser-ctrlTab-js.patch @@ -1,7 +1,16 @@ diff --git a/browser/components/tabbrowser/content/browser-ctrlTab.js b/browser/components/tabbrowser/content/browser-ctrlTab.js -index e5d16e605b7edf11fc9f52b93e415087b76398f1..40b6e29d26c7f8d692a2a9a7d924b289ec7a3d03 100644 +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