Closed Bug 1867308 Opened 1 year ago Closed 1 year ago

The focus remain stuck the entire Firefox session after focusing any of the buttons from the Search OneOffs section while the Opt-In section is displayed at the bottom

Categories

(Firefox :: Address Bar, defect)

Desktop
All
defect

Tracking

()

VERIFIED FIXED
122 Branch
Tracking Status
firefox-esr115 --- unaffected
firefox120 --- unaffected
firefox121 --- verified
firefox122 --- verified

People

(Reporter: cmuntean, Assigned: dao)

References

(Blocks 1 open bug, Regression)

Details

(Keywords: regression, Whiteboard: [sng])

Attachments

(2 files)

[Affected versions]:

  • Firefox Beta 121.0b4 - Build ID: 20231120154937
  • Firefox Nightly 122.0a1 - Build ID: 20231129050021

[Affected Platforms]:

  • Windows 10 x64
  • Ubuntu 22.04 x64
  • macOS 13.6

[Prerequisites]:

  • Have a Firefox 121 or 122 en* build installed.
  • Have the following prefs in the "about:config" page:
    -browser.search.region set to US;
    -browser.urlbar.quicksuggest.contextualOptIn set to true
    -browser.urlbar.quicksuggest.contextualOptIn.topPosition set to false

[Steps to reproduce]:

  1. Open the browser with the profile from the prerequisites.
  2. Open click in the Address Bar.
  3. Press the down arrow key until the "Not not" button is focused.
  4. Open a new tab and click the Address Bar.
  5. Observe the behavior.

[Expected result]:

  • No buttons are focused.

[Actual result]:

  • The "Not Now" button remains focused, and the focus cannot be dismissed.

[Regression]

  • This issue is not reproducible with Firefox Beta 121.0b4. Using mozregression tools we have found the following:
    -Last good revision: 413cc418d2da5d2e324b2c5081e11214ac50f3fd
    -First bad revision: 5a9dc4e73f4690603070bfeefb4eac9b5260bbb7
    -Pushlog: Link

Based on this pushlog it seems that Bug 1866069 introduced this issue.

[Notes]:

  • The following error is displayed after reaching the "Not Now" button:
    • handleEvent resource:///modules/UrlbarInput.sys.mjs:553 UrlbarController.sys.mjs:691:19
      TypeError: element is null19 UrlbarSearchOneOffs.sys.mjs:194:39
  • The issue is NOT reproducible for the Opt-In section displayed at the top.
  • THe issue is still reproducible even after the Opt-In section is dismissed. You need to restart the browser in order to lose focus.
  • Attached is a screen recording of the issue.

Set release status flags based on info from the regressing bug 1866069

:dao, since you are the author of the regressor, bug 1866069, could you take a look?

For more information, please visit BugBot documentation.

Flags: needinfo?(dao+bmo)
Flags: needinfo?(dao+bmo)
Whiteboard: [sng]
Assignee: nobody → dao+bmo
Status: NEW → ASSIGNED
Pushed by dgottwald@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/8493fb875960 Add null-check in #isQuickSuggestOptInElement. r=daleharvey
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 122 Branch

Comment on attachment 9366257 [details]
Bug 1867308 - Add null-check in #isQuickSuggestOptInElement. r=daleharvey

Beta/Release Uplift Approval Request

  • User impact if declined: Hopefully the last (based on current QA findings) issue we'll want to fix for the Firefox Suggest data collection opt-in experiment that we're going to run in 121, supports OKR 5.2. This bug affecting only half of the treatment branches might skew experiment results.
  • Is this code covered by automated tests?: No
  • Has the fix been verified in Nightly?: No
  • Needs manual test from QE?: Yes
  • If yes, steps to reproduce: QA found this, they have the steps, see comment 0
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): one-liner null-check fix
  • String changes made/needed:
  • Is Android affected?: No
Attachment #9366257 - Flags: approval-mozilla-beta?
Flags: qe-verify+

Comment on attachment 9366257 [details]
Bug 1867308 - Add null-check in #isQuickSuggestOptInElement. r=daleharvey

Approved for 121.0b7.

Attachment #9366257 - Flags: approval-mozilla-beta? → approval-mozilla-beta+

I have verified this issue on the latest Beta 121.0b7 (Build ID: 20231204092159) and the latest Nightly 122.0a1 (Build ID: 20231204091942) on Windows 10 x64, macOS 13.1 and Ubuntu 20.4 x64.

  • The focus is no longer stuck after following the steps from comment 0.
Status: RESOLVED → VERIFIED
Flags: qe-verify+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: