Fixed trying to unload an about:* page rendering the browser useless

This commit is contained in:
mr. M
2025-02-19 17:50:48 +01:00
parent 37a985c936
commit 41938191c7

View File

@@ -467,8 +467,11 @@
if (selectedTab.hasAttribute('glance-id')) {
break;
}
gBrowser.explicitUnloadTabs([selectedTab]);
selectedTab.removeAttribute('linkedpanel');
// Do not unload about:* pages
if (!selectedTab.linkedBrowser?.currentURI.spec.startsWith('about:')) {
gBrowser.explicitUnloadTabs([selectedTab]);
selectedTab.removeAttribute('linkedpanel');
}
}
break;
case 'reset':