Closed Bug 2068166 Opened 24 days ago Closed 23 days ago

Newtab searchbar results view doesn't open on mousedown when the searchbar is empty

Categories

(Firefox :: Address Bar, defect, P1)

defect

Tracking

()

VERIFIED FIXED
157 Branch
Tracking Status
firefox157 --- verified

People

(Reporter: mbeier, Assigned: dao)

References

Details

(Whiteboard: [sng][mcab-hnt])

Attachments

(1 file)

STR:

  1. Enable browser.urlbar.newtab.featureGate (enabled by default in nightly)
  2. Open the newtab page and click the search bar (while the search bar is empty)

Expected:
Results view opens and shows recent searches and/or trending results

Actual:
Results view doesn't open.
Note: it opens when pressing arrow down.

Severity: -- → S4
Priority: -- → P1
Severity: S4 → S3
Summary: Newtab searchbar results view doesn't open on click when the searchbar is empty → Newtab searchbar results view doesn't open on mousedown when the searchbar is empty
Assignee: nobody → dao+bmo
Status: NEW → ASSIGNED

composedTarget is chrome-only, so it reads as undefined in the page's realm and the handler broke out before opening the view. The two reads differ only for a mousedown inside a descendant's shadow tree -- a moz-button -- which is neither of the nodes compared against, since composedTarget resolves the input's own anonymous content to the input itself.

This was leftover from the abandoned attempt to use shadow DOM in bug 1986130.

Status: ASSIGNED → RESOLVED
Closed: 23 days ago
Resolution: --- → FIXED
Target Milestone: --- → 157 Branch
QA Whiteboard: [search][qa-triage-done-c157/b156][qa-ver-needed-c157/b156]

Reproducible on a 2026-09-01 Firefox Nightly build on Windows 10.

Verified as fixed on Firefox Nightly 157.0a1 on Windows 10, Ubuntu 22, macOS 13.

Status: RESOLVED → VERIFIED
QA Whiteboard: [search][qa-triage-done-c157/b156][qa-ver-needed-c157/b156] → [search][qa-triage-done-c157/b156][qa-ver-done-c157/b156]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: