Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/browser/app/profile/features.inc
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,4 @@ pref('zen.haptic-feedback.enabled', true);

// Startup flags
pref('zen.startup.smooth-scroll-in-tabs', true);
pref('zen.startup.focus-urlbar', true);
6 changes: 5 additions & 1 deletion src/zen/workspaces/ZenWorkspaces.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,11 @@ var gZenWorkspaces = new (class extends ZenMultiWindowFeature {
gZenVerticalTabsManager._canReplaceNewTab
) {
// Only set up URL bar selection if we're switching to a different tab
if (gBrowser.selectedTab !== this._emptyTab && selectURLBar) {
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

) {
// Use a Promise-based approach for better sequencing
const urlBarSelectionPromise = new Promise((resolve) => {
const tabSelectListener = () => {
Expand Down