From b1ef36c670aa8e6308adff9b86ad04a57852d022 Mon Sep 17 00:00:00 2001 From: "mr. m" Date: Sat, 21 Feb 2026 10:10:05 +0100 Subject: [PATCH] feat: Only load about:blank for secondary views when needed, b=no-bug, c=no-component --- src/zen/sessionstore/ZenWindowSync.sys.mjs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/zen/sessionstore/ZenWindowSync.sys.mjs b/src/zen/sessionstore/ZenWindowSync.sys.mjs index 958ae6395..4a2e51a24 100644 --- a/src/zen/sessionstore/ZenWindowSync.sys.mjs +++ b/src/zen/sessionstore/ZenWindowSync.sys.mjs @@ -734,7 +734,11 @@ class nsZenWindowSync { // We do need to do this though instead of just unloading the browser because // firefox doesn't expect an unloaded + selected tab, so we need to get // around this limitation somehow. - if (!onClose) { + if ( + !onClose && + (aOtherTab.linkedBrowser?.currentURI.spec !== "about:blank" || + aOtherTab.hasAttribute("busy")) + ) { this.log(`Loading about:blank in our tab ${aOtherTab.id} before swap`); aOtherTab.linkedBrowser.loadURI(Services.io.newURI("about:blank"), { triggeringPrincipal: Services.scriptSecurityManager.getSystemPrincipal(),