Skip to content

Commit e7e6d34

Browse files
committed
[Android] [UX] Fix closing site permissions UI reverts to the wrong tab.
1 parent f1f39b6 commit e7e6d34

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/ui/popup.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -564,7 +564,9 @@ addEventListener("unload", e => {
564564
window.close();
565565
} else {
566566
(async () => {
567-
browser.tabs.remove((await browser.tabs.getCurrent()).id);
567+
const currentTabId = (await browser.tabs.getCurrent()).id;
568+
await browser.tabs.update(tabId, { active: true });
569+
await browser.tabs.remove(currentTabId);
568570
})();
569571
}
570572
}

0 commit comments

Comments
 (0)