Closed Bug 2073838 Opened 2 months ago Closed 2 months ago

Entering search mode for an engine with no suggestions opens an empty results panel

Categories

(Firefox :: Address Bar, defect, P1)

defect

Tracking

()

VERIFIED FIXED
159 Branch
Tracking Status
firefox-esr115 --- unaffected
firefox-esr140 --- unaffected
firefox-esr153 --- unaffected
firefox156 --- unaffected
firefox157 --- wontfix
firefox158 --- verified
firefox159 --- verified

People

(Reporter: dao, Assigned: dao)

References

(Blocks 1 open bug, Regression)

Details

(Keywords: regression, Whiteboard: [sng][mcab-hnt-followon])

Attachments

(2 external files)

Open the search mode switcher in the address bar or the new tab search bar and pick an engine that offers no suggestions for an empty query, e.g. Ecosia, or press its first letter. The results panel opens with no rows, showing only its border and shadow.

UrlbarView.onQueryFinished closes the view when a query returns nothing, except in search mode, where it keeps the view open so the one-off buttons stay reachable. With the search mode switcher there are no one-off buttons, so nothing fills the panel.

Bug 2073612 covers the panel staying open after its last result is removed; this is the panel opening empty in the first place.

promiseSearchComplete no longer waits for the view to open, since a query without results now leaves it closed.

Assignee: nobody → dao+bmo
Status: NEW → ASSIGNED
Severity: -- → S3
Priority: -- → P1
Pushed by dgottwald@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/18223a4156c6 https://hg.mozilla.org/integration/autoland/rev/2d90a00fcc5e Keep the urlbar view closed when a search mode query has no results and no one-offs to show. r=daleharvey
Pushed by pstanciu@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/376118a69c7a https://hg.mozilla.org/integration/autoland/rev/5ac70067e984 Revert "Bug 2073838 - Keep the urlbar view closed when a search mode query has no results and no one-offs to show. r=daleharvey" for causing bc failures @ browser_searchmode.js
Flags: needinfo?(dao+bmo)
Attachment #9645553 - Attachment description: Bug 2073838 - Keep the urlbar view closed when a search mode query has no results and no one-offs to show. r?daleharvey! → Bug 2073838 - Keep the urlbar view closed when a search mode query has no results and no one-offs to show. r=daleharvey
Pushed by dgottwald@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/9a70bd4189a6 https://hg.mozilla.org/integration/autoland/rev/b45a0cce93bf Keep the urlbar view closed when a search mode query has no results and no one-offs to show. r=daleharvey
Duplicate of this bug: 2074950
Flags: needinfo?(dao+bmo)
Pushed by nfay@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/f42d319e9802 https://hg.mozilla.org/integration/autoland/rev/54fa403c0708 Revert "Bug 2073838 - Keep the urlbar view closed when a search mode query has no results and no one-offs to show. r=daleharvey" for causing bc failures @ browser_search_history.js, browser_search_history_from_history_panel.js

Backed out for causing bc failures @ browser_search_history.js, browser_search_history_from_history_panel.js

Backout link

Push with failures

Failure log
Failure log

Flags: needinfo?(dao+bmo)
Pushed by dgottwald@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/d8bb93a1c9c2 https://hg.mozilla.org/integration/autoland/rev/acea57c7a150 Keep the urlbar view closed when a search mode query has no results and no one-offs to show. r=daleharvey

firefox-beta Uplift Approval Request

Attachment #9648298 - Flags: approval-mozilla-beta?

promiseSearchComplete no longer waits for the view to open, since a query without results now leaves it closed.

UrlbarSearchOneOffs now invalidates its cache when the scotchBonnet one-off prefs change, since willHide() depends on them.

Original Revision: https://phabricator.services.mozilla.com/D327663

Status: ASSIGNED → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 159 Branch

Authored by https://github.com/daogottwald
https://github.com/mozilla/enterprise-firefox/commit/d8bb93a1c9c257e90131500c93b903b989483ace
[enterprise-main] Bug 2073838 - Keep the urlbar view closed when a search mode query has no results and no one-offs to show. r=daleharvey

(via GitHub webhook, authenticated as shared-secret)

Flags: needinfo?(dao+bmo)
Attachment #9648298 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
QA Whiteboard: [search][qa-triage-done-c159/b158][qa-ver-needed-c159/b158]
QA Contact: phorea

Reproduced the described behaviour in Nightly 158.0a1 2026-09-19.
The issue no longer occurs in latest 159.0a1 Nightly across Win 11, macOS 15 and Ubuntu 24.

Please note that with this change, the address bar is not enlarged anymore when opening search mode (as per Nova design).

Verified fixed on Firefox 158 beta 1 under macOS 15, Win 11 and Ubuntu 24.

Status: RESOLVED → VERIFIED
QA Whiteboard: [search][qa-triage-done-c159/b158][qa-ver-needed-c159/b158] → [search][qa-triage-done-c159/b158][qa-ver-done-c159/b158]
Keywords: regression
Regressed by: 2022527, 2069413
Duplicate of this bug: 2079478
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: