Add support for new tab in the re-open feature

This commit is contained in:
Andrea Marchesini
2026-03-03 10:51:03 +01:00
parent dd2788ee41
commit 20c59fb26f
+6 -1
View File
@@ -88,8 +88,13 @@ const backgroundLogic = {
if (currentTab.length > 0) { if (currentTab.length > 0) {
const tab = currentTab[0]; const tab = currentTab[0];
let url = tab.url;
if (this.NEW_TAB_PAGES.has(url) || !this.isPermissibleURL(url)) {
url = undefined;
}
browser.tabs.create({ browser.tabs.create({
url: tab.url, url,
cookieStoreId, cookieStoreId,
index: tab.index + 1, index: tab.index + 1,
active: tab.active active: tab.active