mirror of
https://github.com/zen-browser/desktop.git
synced 2025-09-06 03:18:19 +00:00
Refactor tab unloading logic to use explicit unload method and remove linked panel attribute
This commit is contained in:
@@ -470,7 +470,8 @@
|
|||||||
this._resetTabToStoredState(selectedTab);
|
this._resetTabToStoredState(selectedTab);
|
||||||
}
|
}
|
||||||
if (behavior.includes('unload')) {
|
if (behavior.includes('unload')) {
|
||||||
gBrowser.discardBrowser(selectedTab);
|
gBrowser.explicitUnloadTabs([selectedTab]);
|
||||||
|
selectedTab.removeAttribute('linkedpanel');
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 'reset':
|
case 'reset':
|
||||||
|
Reference in New Issue
Block a user