Closed Bug 1688802 Opened 2 years ago Closed 2 years ago

Investigate removing focus from the address bar in about:welcome


(Firefox :: Messaging System, enhancement, P1)




87 Branch
87.2 - Feb 8 - Feb 21
Tracking Status
firefox87 --- verified


(Reporter: pdahiya, Assigned: pdahiya)


(Blocks 1 open bug)



(1 file)

After installation, when users land on about:welcome, the browser's focus is on the address bar with the cursor blinking there. It distracts from starting onboarding flow.

Scope of this bug is to investigate if we can remove the focus from the awesome bar and determine if this can be done as an experiment.

Hi Dao,

NI'ing as you have touched this code last :) , Code change in attached patch removes focus from urlbar for brief window of time when user lands on welcome page after installing Firefox. We would like to experiment if this change gets more user to try onboarding flow.

Will be great if you can give feedback (if this is the right place for removing focus) or redirect this to someone who knows this codebase more, thanks!

Flags: needinfo?(dao+bmo)

Hi Natalie,

Please see comment 2 (above), we want to make sure that this change won't interfere with anything the Search team is planning.

Flags: needinfo?(dao+bmo) → needinfo?(nraketic)
Severity: -- → S3
Iteration: --- → 87.1 - Jan 25 - Feb 7
Priority: -- → P1
Assignee: nobody → pdahiya

Please see the reply in phabricator.

Flags: needinfo?(nraketic)
Iteration: 87.1 - Jan 25 - Feb 7 → 87.2 - Feb 8 - Feb 21

NI Dao to help review updated attached patch , thanks!

Flags: needinfo?(dao+bmo)
Pushed by
Remove focus from the address bar in about:welcome r=dao,k88hudson

Doing another try run on linux seems to pass this test

This failure is highly intermittent, looking at error logs in #comment 7 failure seems to be triggered from browser_aboutwelcome_multistage.js where browser_aboutwelcome_ExperimentAPI enrolls in 'mochitest-aboutwelcome' experiment and all subsequent test stays enrolled in experiment, this impacts browser_aboutwelcome_skipFocus.js which needs its own test content with skipFocus set as true.

NI @andreio to help debug why ExperimentAPI._store._deleteForTests("mochitest-aboutwelcome"); cleanup not working for above run, thanks!

Flags: needinfo?(pdahiya) → needinfo?(andrei.br92)
Pushed by
Remove focus from the address bar in about:welcome r=dao,k88hudson

We cache aboutwelcome experiments in prefs for fast sync access. store._deleteForTests will remove the enrollment from the file stored on disk but if cleanup isn't done through the normal unenroll flow then the pref for this experiment remains active. See test_ExperimentManager_enroll.js for a cleanup function. But I recommend doing something like

for experiment in store.getAllActive() {
await BrowserTestUtils.waitForCondition(() => store.getAllActive().length === 0)

if this is an end to end test and not just small unit tests.

Flags: needinfo?(andrei.br92)
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 87 Branch

I have verified this enhancement and I can confirm the "Address Bar" is not automatically focused at first-startup if the browser.aboutwelcome.overrideContent pref is set to the value that Punam provided here. Also, we will perform a more thoughtfully testing round in the Firefox 87 Pre-Release phase which will conclude with a testing report.

Flags: needinfo?(dao+bmo)

This enhancement was part of the testing performed for "[PI-948] Remove focus from the address bar after install" feature. Considering this I am changing the status to Verified - Fixed.

Blocks: 1706746
You need to log in before you can comment on or make changes to this bug.