From 8e67690f82072e7ca6722bb6f4503573f19417f1 Mon Sep 17 00:00:00 2001 From: "Mr. M" Date: Sat, 21 Jun 2025 17:30:03 +0200 Subject: [PATCH] fix: Fixed tab icon URL being incorrect when unloading, b=no-bug, c=tabs --- src/zen/tabs/ZenPinnedTabManager.mjs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/zen/tabs/ZenPinnedTabManager.mjs b/src/zen/tabs/ZenPinnedTabManager.mjs index 7baee4aef..4df31357f 100644 --- a/src/zen/tabs/ZenPinnedTabManager.mjs +++ b/src/zen/tabs/ZenPinnedTabManager.mjs @@ -546,6 +546,7 @@ break; } await gBrowser.explicitUnloadTabs([selectedTab]); + selectedTab.removeAttribute('discarded'); } if (selectedTab.selected) { this._handleTabSwitch(selectedTab); @@ -611,7 +612,7 @@ // Remove everything except the entry we want to keep state.entries = [state.entries[foundEntryIndex]]; } - state.image ||= pin.iconUrl || null; + state.image = pin.iconUrl || null; state.index = 0; SessionStore.setTabState(tab, state);