Refactor tab unloading logic to use explicit unload method and remove linked panel attribute

This commit is contained in:
mr. M
2025-01-24 17:55:31 +01:00
parent a3bebadff8
commit ca1e0ffdea

View File

@@ -470,7 +470,8 @@
this._resetTabToStoredState(selectedTab);
}
if (behavior.includes('unload')) {
gBrowser.discardBrowser(selectedTab);
gBrowser.explicitUnloadTabs([selectedTab]);
selectedTab.removeAttribute('linkedpanel');
}
break;
case 'reset':