From 4a7b517460d9e473f1ae2d5fade516de50c591db Mon Sep 17 00:00:00 2001 From: "mr. m" <91018726+mr-cheffy@users.noreply.github.com> Date: Mon, 27 Apr 2026 09:52:01 +0200 Subject: [PATCH] no-bug: Always show initial url if empty tab is selected (gh-13435) --- src/zen/spaces/ZenSpaceManager.mjs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/zen/spaces/ZenSpaceManager.mjs b/src/zen/spaces/ZenSpaceManager.mjs index 8dd1730b8..a97dd0978 100644 --- a/src/zen/spaces/ZenSpaceManager.mjs +++ b/src/zen/spaces/ZenSpaceManager.mjs @@ -814,7 +814,6 @@ class nsZenWorkspaces { return; } await this.promiseInitialized; - let shownEmptyTab = false; let resolveSelectPromise; let selectPromise = new Promise(resolve => { resolveSelectPromise = resolve; @@ -875,7 +874,6 @@ class nsZenWorkspaces { "Selecting empty tab because startup page didnt select a valid tab" ); this.selectEmptyTab(); - shownEmptyTab = true; } this.log("Removing empty tab added by startup page"); this._removedByStartupPage = true; @@ -902,7 +900,8 @@ class nsZenWorkspaces { "zen.urlbar.open-on-startup", true ); - shownEmptyTab &&= openOnStartup; + let shownEmptyTab = + gBrowser.selectedTab.hasAttribute("zen-empty-tab") && openOnStartup; initialTabWasEmpty &&= openOnStartup; // Wait for the next event loop to ensure that the startup focus logic by