fix: Fixed tab icon URL being incorrect when unloading, b=no-bug, c=tabs

This commit is contained in:
Mr. M
2025-06-21 17:30:03 +02:00
parent 37bd317391
commit 8e67690f82

View File

@@ -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);