Closed Bug 2046635 Opened 1 month ago Closed 1 month ago

Nova's legacy search bar's switcher menu has an extra separator

Categories

(Firefox :: Address Bar, defect, P1)

defect

Tracking

()

VERIFIED FIXED
153 Branch
Tracking Status
firefox-esr115 --- unaffected
firefox-esr140 --- unaffected
firefox151 --- disabled
firefox152 --- disabled
firefox153 --- verified

People

(Reporter: cpeterson, Assigned: daisuke)

References

(Blocks 1 open bug, Regression)

Details

(Keywords: regression)

Attachments

(2 files, 1 obsolete file)

Attached image screenshot.png

Before the settings redesign (browser.settings-redesign.enabled), I had unchecked history and bookmarks from the Search Shortcut settings so they weren't included in my address bar's or search bar's suggestions. With the Nova's legacy search bar, the history and bookmarks suggestions are still hidden as expected, but there is an extra separator where they would have been.

Drew says this bug is a regression from bug 2019169.

Flags: needinfo?(daisuke)

I investigated this issue.

This was actually handled in CSS at the bug 2019169. [1]
However, after that, the search mode switcher was originally implemented in XUL, we converted it to HTML [2]. As part of that it now uses panel-list[3], whose stylesheet sets display: block !important on slotted hr elements [4], so that rule ended up winning over ours.

[1] https://searchfox.org/firefox-main/rev/8e16ea8e5df0354144902ae0911a5609344bdb6d/browser/themes/shared/urlbar-searchbar.css#1448-1451
[2] https://bugzilla.mozilla.org/show_bug.cgi?id=1998985
[3] https://searchfox.org/firefox-main/rev/8e16ea8e5df0354144902ae0911a5609344bdb6d/browser/components/urlbar/content/UrlbarInput.mjs#140
[4] https://searchfox.org/firefox-main/rev/8e16ea8e5df0354144902ae0911a5609344bdb6d/toolkit/content/widgets/panel-list/panel-list.css#77-78

As a fix, I think we can either strengthen our rule with display: none !important in CSS, or explicitly set hidden on the hr via JS. I’ll go with the former for now, but let me know if you have any thoughts.

Assignee: nobody → daisuke
Flags: needinfo?(daisuke)
Regressed by: 1998985
No longer regressed by: 2019169
Severity: -- → S4
Status: NEW → ASSIGNED
Priority: -- → P1
Attachment #9596279 - Attachment is obsolete: true
Pushed by dakatsuka.birchill@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/a4b4b29059fd https://hg.mozilla.org/integration/autoland/rev/68b78fe0a94e Hide the footer separator with the hidden attribute when there are no items between the separators r=urlbar-reviewers,adw
Status: ASSIGNED → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 153 Branch
QA Whiteboard: [search] [qa-triage-done-c153/b152] [qa-ver-needed-c153/b152]

Reproducible on a 2026-06-10 Firefox Nightly build on Windows 10.

Verified as fixed on Firefox Nightly 153.0a1 on Windows 10, Ubuntu 22, macOS 15.

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

Attachment

General

Created:
Updated:
Size: