Open Bug 1875996 Opened 1 year ago Updated 9 months ago

[wayland] Context menu for top edge of titlebar is too small and scrolls when window is at top of screen

Categories

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

Firefox 121
defect

Tracking

()

ASSIGNED
Tracking Status
firefox-esr115 --- wontfix
firefox124 --- wontfix
firefox125 --- wontfix
firefox126 --- fix-optional
firefox127 --- fix-optional

People

(Reporter: julien.falque, Assigned: emilio)

References

(Blocks 2 open bugs, Regression)

Details

(Keywords: regression)

Attachments

(5 files)

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:121.0) Gecko/20100101 Firefox/121.0

Steps to reproduce:

On a Gnome desktop (Arch Linux, Wayland), I have a tiled Firefox window on the left half of the screen and I make a right-click on the very top pixel of the titlebar of the window, so at the top edge of the screen. It doesn't matter whether there is a tab at that position.

Actual results:

The context menu is slightly folded, hiding the last item behind a down arrow. Actually, the menu appears unfolded for a very short but still noticeable time, and then gets folded.

Expected results:

The context menu should always appear unfolded as there's enough room to display the menu entirely.

The Bugbug bot thinks this bug should belong to the 'Core::Widget: Gtk' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Widget: Gtk
Product: Firefox → Core

Please attach your about:support page.

Can you please run Firefox on terminal as:

MOZ_LOG="WidgetPopup:5" firefox > run.txt 2>&1

reproduce it and attach the log here?
Thanks.

Flags: needinfo?(julien.falque)
Priority: -- → P3
Attached file about:support.txt
Flags: needinfo?(julien.falque)
Attached file run.txt

This occurs on Ubuntu 23.10 (Wayland) when the CSD titlebar is against the top bar. It does not happen with XWayland.

The first right-click on the top edge of a new window shows a context menu with 4 visible items, subsequent clicks show 7 visible items (menu contains a total of 8 items). In the latter case, the menu scroll distance is only 2px. The popup is positioned vertically 2px closer to the cursor after the regression.

Regression window:
https://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=08eb1047d841ce4f1fcee1595dc4ec7ed8cba8f5&tochange=28da4138ddff87ff0684b274db911cd4b602ac92

Possibly regressed by Bug 1738265.

Blocks: gtktitlebar
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: regression
Regressed by: 1738265
Summary: Unnecessarily folded context menu on titlebar of tiled window on Gnome → [wayland] Context menu for top edge of titlebar is too small and scrolls when window is at top of screen

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

For more information, please visit BugBot documentation.

Flags: needinfo?(emilio)

Otherwise we get a smaller final rect from move-to-rect.

Assignee: nobody → emilio
Status: NEW → ASSIGNED
Flags: needinfo?(emilio)

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

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: