From f5effd4dcdf664d0cf74d10f89b05dc3c48b2268 Mon Sep 17 00:00:00 2001 From: "mr. m" Date: Mon, 9 Feb 2026 09:02:39 +0100 Subject: [PATCH] feat: Add preference to focus on urlbar on startup, b=no-bug, c=workspaces --- prefs/zen/zen-urlbar.yaml | 3 +++ src/zen/workspaces/ZenWorkspaces.mjs | 2 ++ 2 files changed, 5 insertions(+) diff --git a/prefs/zen/zen-urlbar.yaml b/prefs/zen/zen-urlbar.yaml index 748c77d27..a39a77e24 100644 --- a/prefs/zen/zen-urlbar.yaml +++ b/prefs/zen/zen-urlbar.yaml @@ -32,6 +32,9 @@ - name: zen.urlbar.show-pip-button value: false +- name: zen.urlbar.open-on-startup + value: true + # Mark: Zen suggestions controls - name: zen.urlbar.suggestions.quick-actions diff --git a/src/zen/workspaces/ZenWorkspaces.mjs b/src/zen/workspaces/ZenWorkspaces.mjs index b8fc667ef..7af3821db 100644 --- a/src/zen/workspaces/ZenWorkspaces.mjs +++ b/src/zen/workspaces/ZenWorkspaces.mjs @@ -1020,6 +1020,8 @@ class nsZenWorkspaces { delete this._initialTab; } + showed &&= Services.prefs.getBoolPref("zen.urlbar.open-on-startup", true); + // Wait for the next event loop to ensure that the startup focus logic by // firefox has finished doing it's thing. setTimeout(() => {