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(() => {