Skip to content

Conversation

Ernestas-t
Copy link
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
Contributor

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

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