feat: Add preference to focus on urlbar on startup, b=no-bug, c=workspaces

This commit is contained in:
mr. m
2026-02-09 09:02:39 +01:00
parent 604365dd38
commit f5effd4dcd
2 changed files with 5 additions and 0 deletions

View File

@@ -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

View File

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