Skip to content

feat: add preference to toggle URL bar autofocus on startup#8990

Closed
Ernestas-t wants to merge 2 commits intozen-browser:devfrom
Ernestas-t:startup-autofocus-toggle
Closed

feat: add preference to toggle URL bar autofocus on startup#8990
Ernestas-t wants to merge 2 commits intozen-browser:devfrom
Ernestas-t:startup-autofocus-toggle

Conversation

@Ernestas-t
Copy link
Copy Markdown
Contributor

Add zen.startup.focus-urlbar preference to control whether the URL bar is automatically focused when switching tabs during startup. Defaults to true to maintain current behavior while allowing users to disable this feature if desired.

It would also be good to have a toggle in the UI settings, but i think it's best to leave it for a separate commit.

Add zen.startup.focus-urlbar preference to control whether the URL bar
is automatically focused when switching tabs during startup. Defaults
to true to maintain current behavior while allowing users to disable
this feature if desired.
@Ernestas-t Ernestas-t requested a review from mr-cheffy June 12, 2025 15:43
@dosubot dosubot Bot added size:XS This PR changes 0-9 lines, ignoring generated files. Feature labels Jun 12, 2025
if (
gBrowser.selectedTab !== this._emptyTab &&
selectURLBar &&
Services.prefs.getBoolPref('zen.startup.focus-urlbar', true)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This isnt the correct call as it woudnt just be on startup. Rather dont call openTab on selectStartpage

@mr-cheffy
Copy link
Copy Markdown
Member

@Ernestas-t not sure if you still want to implement this, but there are some git conflicts. I'll close this and please do re-open with the conflicts solved if you are interested ^^

@mr-cheffy mr-cheffy closed this Feb 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Feature size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants