Closed Bug 2003258 Opened 7 months ago Closed 7 months ago

[Wayland] Submenu position intermittently slightly off

Categories

(Core :: Widget: Gtk, defect, P3)

defect

Tracking

()

RESOLVED FIXED
148 Branch
Tracking Status
firefox-esr140 --- unaffected
firefox145 --- unaffected
firefox146 --- wontfix
firefox147 --- wontfix
firefox148 --- fixed

People

(Reporter: manuel, Assigned: emilio)

References

(Blocks 1 open bug, Regression)

Details

(Keywords: regression)

Attachments

(5 files, 1 obsolete file)

Attached video menu-position-off.mp4

I'm unable to do a good mozregression, but I believe it broke somewhere in a9b1de7c0585b7f4b77990b2e6f51f796ed3e4e4...3befa2ffc228fd4d071c8b696872a760954392fc. ./mach mozregression --good 2025-10-30 --bad 2025-11-01

With my last regression I ended up with the regression window: 2c449ac57a9062ead7243b27bb5dceb94b804c5c...d51bf7d6db72d1f039cd874eee72bfdd352f59af

Due to the intermittent nature of the bug, I ended on three different unrelated bugs. So I'm not 100% confident that I've set the correct regression bug. However, it does look at least somewhat related. Sorry if I tagged the wrong regression bug.

I can reproduce on a current build, so it's not fixed by the other regression bug (bug 1998949)

Set release status flags based on info from the regressing bug 1992198

:stransky, since you are the author of the regressor, bug 1992198, could you take a look?

For more information, please visit BugBot documentation.

Checked but unable to reproduce. Which system is that? Please attach your about:support.
Thanks.

Flags: needinfo?(stransky) → needinfo?(manuel)
Priority: -- → P3
Summary: Submenu position intermittently slightly off → [Wayland] Submenu position intermittently slightly off

Can you possibly run it on terminal with MOZ_LOG="WidgetPopup:5" env variable and attach the log here if you can reproduce it?
Thanks.

Flags: needinfo?(manuel)
Attached file about:support.json

I enabled logging from about:logging for producing this log, because its more convenient in combination with ./mach mozregression for a clean profile. Let me know if you need the log from application start. I'd then record again.

I see parent position change according to the log but the screencast shows no parent popup change but the child one. Also according to the log the popup is moved left, not right - I wonder how's that possible.

Could we get a severity set for this bug
(from REO Fx146)

Flags: needinfo?(stransky)
Severity: -- → S3
Flags: needinfo?(stransky)

Set release status flags based on info from the regressing bug 1992198

Flags: needinfo?(emilio)
Depends on: 2006320

So I can reproduce this only if I have a 1.5 dpi, does that match your set-up?

Flags: needinfo?(manuel)

Yes, my monitors are set to 150% scaling.

Flags: needinfo?(manuel)
Flags: needinfo?(emilio)

Now that we use unscaled coordinates internally, there's no guarantee
that the coordinates that we set in device pixels end up rounding up to
the multiple of the scale, which can cause menus to drift with scalings
that are >= 1.5.

Assignee: nobody → emilio
Status: NEW → ASSIGNED

Now that we use unscaled coordinates internally, there's no guarantee
that the coordinates that we set in device pixels end up rounding up to
the multiple of the scale, which can cause menus to drift with scalings
that are >= 1.5.

Let's see if we have any regression on move-to-rect scenario and popup reposition:
https://searchfox.org/firefox-main/rev/929fb12c1318659f24965f2908dec6e5fd56d9d9/widget/gtk/nsWindow.cpp#2088
maybe we may update it to scale*2 or so?

Status: ASSIGNED → RESOLVED
Closed: 7 months ago
Resolution: --- → FIXED
Target Milestone: --- → 148 Branch
Attachment #9533895 - Attachment is obsolete: true

The patch landed in nightly and beta is affected.
:emilio, is this bug important enough to require an uplift?

For more information, please visit BugBot documentation.

Flags: needinfo?(emilio)

These changes are never risk-free, so let's go with wontfix for now since there are other changes in flight in the area.

Flags: needinfo?(emilio)
QA Whiteboard: [qa-triage-done-c149/b148]
Duplicate of this bug: 2014900
No longer regressions: 2014900
Blocks: 1630462
Blocks: 1790988
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: