Misplaced popups (Hamburger, Download, Tab Thumbnail) sometimes appear at top-left window corner
Categories
(Core :: Widget: Gtk, defect)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox-esr115 | --- | unaffected |
| firefox-esr140 | --- | unaffected |
| firefox145 | --- | unaffected |
| firefox146 | --- | verified |
| firefox147 | --- | verified |
People
(Reporter: erosman, Assigned: stransky)
References
(Blocks 1 open bug)
Details
(Keywords: regression)
Attachments
(7 files)
For the last 3-4 upgrades, occasionally, Hamburger menu, download popup, and tab thumbnails appear misplaced on the far left.
I haven’t found a pattern to reproduce.
It might be Wayland related.
Note: The issue does not appear to affect addons' toolbar popups.
Ubuntu 24.04 Wayland
Maximised Nightly
| Reporter | ||
Comment 1•7 months ago
|
||
| Reporter | ||
Comment 2•7 months ago
|
||
| Assignee | ||
Comment 3•7 months ago
|
||
Can you please test latest nighly? May be dupe of Bug 1990483.
Thanks.
| Reporter | ||
Comment 4•7 months ago
|
||
Bug is present in Nightly Build ID 20251109095540
| Assignee | ||
Comment 5•7 months ago
|
||
Okay please run on terminal with MOZ_LOG="Widget:5 WidgetPopup:5" env variable and attach the log here. for instance as:
MOZ_LOG="Widget:5 WidgetPopup:5" firefox > log.txt 2>&1
Thanks.
| Reporter | ||
Comment 6•7 months ago
|
||
Bug is present in Nightly Build ID 20251110094323
I am not familiar with it.
MOZ_LOG="Widget:5 WidgetPopup:5" firefox > log.txt 2>&1launched standard Firefox, not Nightly- Where would the log be?
| Assignee | ||
Comment 7•7 months ago
|
||
Ahh sorry, for nightly you need to use:
MOZ_LOG="Widget:5 WidgetPopup:5" ./firefox > log.txt 2>&1
run ./firefox from directory where nightly is located. There will be the log.txt file after that and this needs to be attached here.
Thanks.
| Reporter | ||
Comment 8•7 months ago
|
||
I tried multiple times but that is all I get in log.txt.
[29039] Sandbox: CanCreateUserNamespace() unshare(CLONE_NEWPID): EPERM
Comment 9•7 months ago
|
||
Seeing misplaced popups sometimes too (no clear STR, currently at Nightly 2025-11-08). Will try to enable logging as requested above with about:logging and catch the problem.
Comment 10•7 months ago
|
||
This log includes a misplaced popup at around 10:46:37. I've filtered out all lines for "nsWindow::FractionalScaleFactor(): fractional scale 1.00" as there were hundreds of these per second.
Comment 11•7 months ago
|
||
Noticed this randomly with Nightly 146.0a1 since 2025-11-08 (possibly a few days before, related Bug 1990483 landed in 2025-11-05), Ubuntu 25.10 (Wayland), GNOME 49, single display, 100% scale, maximized and unmaximized windows. In the case of tab previews, the popup keeps reappearing at the top-left window corner as long as the mouse cursor doesn't hover over a different tab.
Comment 12•7 months ago
|
||
Log of it happening with tab hover preview.
| Assignee | ||
Comment 13•7 months ago
|
||
Thanks, there's the related part here:
2025-11-11 10:46:35.397100 UTC - [Parent 1577257: Main Thread]: D/WidgetPopup [7f01c5b11b00]: nsWindow::WaylandPopupHierarchyCalculatePositions()
2025-11-11 10:46:35.397101 UTC - [Parent 1577257: Main Thread]: D/WidgetPopup [7f01c5b11b00]: popup [7f01c5b11b00] set parent window [7f0214defc00]
2025-11-11 10:46:35.397103 UTC - [Parent 1577257: Main Thread]: D/WidgetPopup [7f01c5b11b00]: popup [7f01c5b11b00] bounds [699, 31] -> [288 x 97]
2025-11-11 10:46:35.397104 UTC - [Parent 1577257: Main Thread]: D/WidgetPopup [7f01c5b11b00]: popup [7f01c5b11b00] layout [699, 31] -> [288 x 96]
2025-11-11 10:46:35.397106 UTC - [Parent 1577257: Main Thread]: D/WidgetPopup [7f01c5b11b00]: popup [7f01c5b11b00] has toplevel as parent
2025-11-11 10:46:35.397107 UTC - [Parent 1577257: Main Thread]: D/WidgetPopup [7f01c5b11b00]: popup [7f01c5b11b00] transformed popup coordinates from [0, 0] to [0, 0]
2025-11-11 10:46:35.397109 UTC - [Parent 1577257: Main Thread]: D/WidgetPopup [7f01c5b11b00]: nsWindow::WaylandPopupFitsToplevelWindow()
2025-11-11 10:46:35.397110 UTC - [Parent 1577257: Main Thread]: D/WidgetPopup [7f01c5b11b00]: parent size 1920 x 1026
2025-11-11 10:46:35.397111 UTC - [Parent 1577257: Main Thread]: D/WidgetPopup [7f01c5b11b00]: popup topleft 699, 31 size 288 x 97
2025-11-11 10:46:35.397112 UTC - [Parent 1577257: Main Thread]: D/WidgetPopup [7f01c5b11b00]: fits 1
2025-11-11 10:46:35.397114 UTC - [Parent 1577257: Main Thread]: D/WidgetPopup [7f01c5b11b00]: popup [7f01c5b11b00] matches layout [1] anchored [1] first popup [1] use move-to-rect 0
2025-11-11 10:46:35.397115 UTC - [Parent 1577257: Main Thread]: D/WidgetPopup [7f01c5b11b00]: nsWindow::WaylandPopupMove
2025-11-11 10:46:35.397116 UTC - [Parent 1577257: Main Thread]: D/WidgetPopup [7f01c5b11b00]: original widget popup position [0, 0]
2025-11-11 10:46:35.397118 UTC - [Parent 1577257: Main Thread]: D/WidgetPopup [7f01c5b11b00]: relative widget popup position [0, 0]
2025-11-11 10:46:35.397119 UTC - [Parent 1577257: Main Thread]: D/WidgetPopup [7f01c5b11b00]: popup use move to rect 0
2025-11-11 10:46:35.397120 UTC - [Parent 1577257: Main Thread]: D/WidgetPopup [7f01c5b11b00]: nsWindow::WaylandPopupPrepareForMove()
2025-11-11 10:46:35.397121 UTC - [Parent 1577257: Main Thread]: D/WidgetPopup [7f01c5b11b00]: type matches and we're not forced to hide it, quit.
2025-11-11 10:46:35.397123 UTC - [Parent 1577257: Main Thread]: D/WidgetPopup [7f01c5b11b00]: nsWindow::WaylandPopupMovePlain(0, 0)
2025-11-11 10:46:35.397127 UTC - [Parent 1577257: Main Thread]: D/WidgetPopup [7f01c5b11b00]: nsWindow::WaylandPopupHierarchyShowTemporaryHidden()
2025-11-11 10:46:35.397128 UTC - [Parent 1577257: Main Thread]: D/WidgetPopup [7f01c5b11b00]: Widget Popup Hierarchy:
2025-11-11 10:46:35.397131 UTC - [Parent 1577257: Main Thread]: D/WidgetPopup [7f01c5b11b00]: Frame(7f0215975650) panel Panel/Utility nsWindow [7f01c5b11b00] Permanent 0 ContextMenu 0 Anchored 1 Visible 0 MovedByRect 0
2025-11-11 10:46:35.397137 UTC - [Parent 1577257: Main Thread]: D/WidgetPopup [7f01c5b11b00]: Layout Popup Hierarchy:
2025-11-11 10:46:35.397139 UTC - [Parent 1577257: Main Thread]: D/WidgetPopup [7f01c5b11b00]: Frame(7f0215975650) panel Panel/Utility nsWindow [7f01c5b11b00] Permanent 0 ContextMenu 0 Anchored 1 Visible 0 MovedByRect 0
2025-11-11 10:46:35.397141 UTC - [Parent 1577257: Main Thread]: D/WidgetPopup [7f01c5b11b00]: nsWindow::ShowWaylandPopupWindow. Expected to see visible.
2025-11-11 10:46:35.397143 UTC - [Parent 1577257: Main Thread]: D/WidgetPopup [7f01c5b11b00]: nsWindow::WaylandPopupRemoveNegativePosition()
2025-11-11 10:46:35.397231 UTC - [Parent 1577257: Main Thread]: D/Widget moz_container_wayland_size_allocate [7f01c5b11b00] 0,0 -> 288 x 97
I wonder how we ended up with 0,0 position if layout/bounds positions are correct.
| Assignee | ||
Comment 14•7 months ago
|
||
Updated•7 months ago
|
| Assignee | ||
Comment 15•7 months ago
|
||
We should uplift it to 146.0.
Comment 16•7 months ago
|
||
Comment 17•7 months ago
|
||
| bugherder | ||
Comment 18•7 months ago
|
||
The patch landed in nightly and beta is affected.
:stransky, is this bug important enough to require an uplift?
- If yes, please nominate the patch for beta approval.
- See https://wiki.mozilla.org/Release_Management/Requesting_an_Uplift for documentation on how to request an uplift.
- If no, please set
status-firefox146towontfix.
For more information, please visit BugBot documentation.
| Assignee | ||
Comment 19•7 months ago
|
||
Comment on attachment 9526117 [details]
Bug 1999123 [Wayland] Don't consider popup explicitly moved if it's resized only r?emilio
Beta/Release Uplift Approval Request
- User impact if declined/Reason for urgency: Misplaced popups if popup was resized only and not placed explicitly.
- 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:
- List of other uplifts needed: None
- Risk to taking this patch: Low
- Why is the change risky/not risky? (and alternatives if risky): We add another check for resize only to fix for Bug 1990483.
- String changes made/needed:
- Is Android affected?: No
Comment 20•7 months ago
|
||
Comment on attachment 9526117 [details]
Bug 1999123 [Wayland] Don't consider popup explicitly moved if it's resized only r?emilio
Approved for 146.0b3
Comment 21•7 months ago
|
||
| uplift | ||
Updated•7 months ago
|
Updated•7 months ago
|
Updated•7 months ago
|
Comment 22•7 months ago
•
|
||
I was able only to reproduce Bug 1990483 on an older build (Firefox Nightly 146.0a1 since 2025-11-04), but could not reproduce the issue described here, using Nightly from 2025-11-09.
Erosman, can you please confirm issue is fixed on latest Beta, and latest Nightly. Thank you.
| Reporter | ||
Comment 23•7 months ago
|
||
I have not experienced on Nightly it since the fix.
Comment 24•7 months ago
|
||
Marked as verified based on reporter's comment#23 and based on the fact that I could not reproduce it on latest beta builds.
| Reporter | ||
Comment 25•7 months ago
|
||
There are other instances of misplaced popups. I left a note on #nightly:mozilla.org on Nov 21, but there has been no response.
The screenshots will follow, in case they are related to this bug.
One is for the Dev Tools Console Settings popup and the other for the context-menu popup.
| Reporter | ||
Comment 26•7 months ago
|
||
| Reporter | ||
Comment 27•7 months ago
|
||
| Assignee | ||
Comment 28•7 months ago
|
||
(In reply to erosman [:erosman] from comment #25)
There are other instances of misplaced popups. I left a note on
#nightly:mozilla.orgon Nov 21, but there has been no response.
The screenshots will follow, in case they are related to this bug.
One is for the Dev Tools Console Settings popup and the other for the context-menu popup.
Please file a new bug for it and needinfo me there.
Thanks!
| Reporter | ||
Updated•7 months ago
|
Description
•