Closed Bug 2007147 Opened 8 months ago Closed 6 months ago

The search bar's suggestion pop-up appears behind the URL bar when the search bar customized to place on menubar

Categories

(Firefox :: Search, defect, P1)

Firefox 148
Desktop
All
defect

Tracking

()

VERIFIED FIXED
149 Branch
Tracking Status
firefox-esr115 --- unaffected
firefox-esr140 --- unaffected
firefox146 --- disabled
firefox147 --- disabled
firefox148 --- disabled
firefox149 --- verified
firefox150 --- verified

People

(Reporter: alice0775, Assigned: mbeier)

References

(Regression)

Details

(Keywords: nightly-community, regression, Whiteboard: [sng])

Attachments

(4 files)

Attached image screenshot

Steps to reproduce:

  1. Enable Menu bar
  2. Customize the search bar to be placed in the menu bar
  3. Restart browser
  4. Type search text into the search bar. e.g.,Firefox

Actual results:
The search bar's suggestion pop-up appears behind the URL bar

Expected results:
The search bar's suggestion pop-up should appear at the top most window

:dao, since you are the author of the regressor, bug 2006632, could you take a look? Also, could you set the severity field?

For more information, please visit BugBot documentation.

Flags: needinfo?(dao+bmo)

Alternatively, if you customize the search bar to be placed on the bookmarks toolbar, the URL bar suggestion pop-up will appear behind the search bar.

Steps to reproduce 2:

  1. Enter Customize toolbar mode
  2. Set Bookmarks toolbar Always show
  3. Customize the search bar to be placed on the bookmark toolbar
  4. Restart browser
  5. Type something into urlbar
Blocks: 1974218
No longer depends on: 1974218
Flags: needinfo?(dao+bmo)
Whiteboard: [sng]

This issue is reproduced on uBuntu22.04.

OS: Windows 11 → All
Assignee: nobody → mbeier
Severity: -- → S3
Priority: -- → P1
Status: NEW → ASSIGNED

The issue of STR comment#1 was fixed by Bug 2007341.
However, the issue of STR comment#2 is still reproduced.

Depends on: 2007341

About the issue of STR comment#2, execute setTimeout(() => { gURLBar._on_uidensitychanged(); }, 1500); in Console fix the issue.

The reason this happens is that both the urlbar and searchbar are now popovers and the order in which they are displayed is the order in which they called showPopover.
An easy fix would be to do showPopover when opening the results panel and hidePopover when closing it so only one of the two is a popover at a time, but calling showPopover while selecting text messes with the selection (nothing gets selected).
Emilio, do you have an idea how to solve this issue?

Flags: needinfo?(emilio)

Obvious approach would be to make them popovers only on focus (very similar, but not quite the same to what you suggested), is that possible?

but calling showPopover while selecting text messes with the selection (nothing gets selected).

Can you elaborate, do you have a screencast or something? You mean just text selection or the url highlighting which uses custom stuff (the one to un-highlight subdomains and such).

Flags: needinfo?(emilio)

If it's regular text selection, it should reproduce on a regular website, and it should be fixable in any case.

Yes, regular text selection. I can also reproduce it on regular websites when calling showPopover on mousedown and hidePopover on mouseup (and display: block)

Can you file it separately please? Core :: Selection for the component :)

It probably reproduces when switching display type as well (e.g. if instead of showPopover() you change display to e.g. flex).

Maybe doing it on focus works, tho?

See Also: → 2014481

Yeah it also happens when switching display type. I filed bug 2014481 and attached an example there.

Pushed by mbeier@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/33e695145110 https://hg.mozilla.org/integration/autoland/rev/90e8ccebc029 The search bar's suggestion pop-up appears behind the URL bar when the search bar is placed on the menubar. r=dao,urlbar-reviewers
Status: ASSIGNED → RESOLVED
Closed: 6 months ago
Resolution: --- → FIXED
Target Milestone: --- → 149 Branch
QA Whiteboard: [search] [qa-triage-done-c149/b148][qa-ver-needed-c149]

Verified as fixed using Firefox 149 beta 6 and latest Nightly 150.0a1 under Win 11, Ubuntu 24 and macOS 15.

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

Attachment

General

Created:
Updated:
Size: