Closed Bug 1464606 Opened 7 years ago Closed 7 years ago

[Wayland] Firefox 60.0.1 renders menus at roughly double the appropriate size on HiDPI display.

Categories

(Core :: Widget: Gtk, defect)

60 Branch
x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: u618291, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(3 files)

User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.170 Safari/537.36 OPR/53.0.2907.68 Steps to reproduce: On a system with a HiDPI display and GNOME 3.28 on Fedora 28, install the Firefox 60.0.1-3 package. (It's on koji.fedoraproject.org at the moment.). Open Firefox with "Firefox on Wayland" icon. Actual results: Firefox opens and seems okay at first, except that all menus are rendered at roughly twice the appropriate size and there's some kind of an offset between where the mouse pointer is on the screen and which menu item is selected, making the menus more or less unusable as well. I'm guessing that this is a HiDPI scaling issue? GNOME is already scaling the display at 200% to make everything usable on my laptop screen, but it seems as though Firefox may be scaling its menus again on top of that. Expected results: Firefox menus should render at the same size as the menus in other programs. I can run Firefox on X (XWayland) without any scaling problems.
OS: Unspecified → Linux
Hardware: Unspecified → x86_64
Tested this on Fedora 28 64bits having GNOME 3.28.1 with Firefox 60.0.1 on a 4k monitor. However, I could manage to reproduce the issue. The scaling looks correct to me. However, given other previous bugs and the information provided by the Ryan (reporter), I put this bug under core-widget:gtk component. Feel free to change this component if it is not appropriate for this bug.
Component: Untriaged → Widget: Gtk
Product: Firefox → Core
See Also: → 1211547
(In reply to Abe - QA (:Abe_LV) from comment #1) > Tested this on Fedora 28 64bits having GNOME 3.28.1 with Firefox 60.0.1 on a > 4k monitor. However, I could manage to reproduce the issue. However, I could NOT manage to reproduce the issue.
For me this problem happens all the time when display scaling is enabled in Gnome and I 150% scaling is selected. That said to reproduce the issue: 1. Enable fractional framebuffer scaling in gnome: --------------------------->8-------------------------- gsettings set org.gnome.mutter experimental-features "['scale-monitor-framebuffer']" --------------------------->8-------------------------- 2. Set scaling to 150% 3. Run "Firefox on Wayland" (happens in 60.1, 61.0 and recent hightly builds) and either right mouse click to get context menu or just press "hamburger menu" button, see huge menu appears. Refer to attached screen-shots as well. Note those menus are not only rendered larger than expected but as well navigation within those menus works unexpectedly
Screenshot: display scaling set to 150%
Attached image ff-wayland-menu.png
Screenshot: huge menu on fractionally scaled (x1.5) screen

The hidpi should be already solved. The fractional scaling is covered by Bug 1466616. Closing this one and let's track the fractional bugs at Bug 1466616.

Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: