mirror of
https://github.com/zen-browser/desktop.git
synced 2026-04-20 06:21:00 +00:00
feat: Dont switch permanent keys for window closes, b=closes #12152, c=workflows, flatpak
This commit is contained in:
@@ -734,12 +734,14 @@ class nsZenWindowSync {
|
||||
aOurTab.ownerGlobal.gBrowser.swapBrowsersAndCloseOther(aOurTab, aOtherTab, false);
|
||||
|
||||
// Swap permanent keys
|
||||
const ourPermanentKey = aOurTab.linkedBrowser.permanentKey;
|
||||
const otherPermanentKey = aOtherTab.linkedBrowser.permanentKey;
|
||||
aOurTab.linkedBrowser.permanentKey = otherPermanentKey;
|
||||
aOtherTab.linkedBrowser.permanentKey = ourPermanentKey;
|
||||
aOurTab.permanentKey = otherPermanentKey;
|
||||
aOtherTab.permanentKey = ourPermanentKey;
|
||||
if (!onClose) {
|
||||
const ourPermanentKey = aOurTab.linkedBrowser.permanentKey;
|
||||
const otherPermanentKey = aOtherTab.linkedBrowser.permanentKey;
|
||||
aOurTab.linkedBrowser.permanentKey = otherPermanentKey;
|
||||
aOtherTab.linkedBrowser.permanentKey = ourPermanentKey;
|
||||
aOurTab.permanentKey = otherPermanentKey;
|
||||
aOtherTab.permanentKey = ourPermanentKey;
|
||||
}
|
||||
|
||||
// Since we are moving progress listeners around, there's a chance that we
|
||||
// trigger a load while making the switch, and since we remove the previous
|
||||
|
||||
Reference in New Issue
Block a user