Bug 1590388 - [wayland] firefox menus wrong scaling in HiDPI mode
Summary: [wayland] firefox menus wrong scaling in HiDPI mode
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Fedora
Classification: Fedora
Component: firefox
Version: 29
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Martin Stransky
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 1595779 (view as bug list)
Depends On:
Blocks: ffwayland
TreeView+ depends on / blocked
 
Reported: 2018-06-12 14:30 UTC by Zbigniew Jędrzejewski-Szmek
Modified: 2018-10-11 12:32 UTC (History)
13 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-10-11 12:32:21 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
firefox-wayland showing help menu (187.85 KB, image/png)
2018-06-12 14:30 UTC, Zbigniew Jędrzejewski-Szmek
no flags Details
firefox-x11 showing the help menu (proper scaling) (97.20 KB, image/png)
2018-06-12 14:31 UTC, Zbigniew Jędrzejewski-Szmek
no flags Details
firefox-wayland ask password dialogue (127.31 KB, image/png)
2018-06-12 14:32 UTC, Zbigniew Jędrzejewski-Szmek
no flags Details
firefox-wayland showing html menu (225.62 KB, image/png)
2018-06-12 14:33 UTC, Zbigniew Jędrzejewski-Szmek
no flags Details
firefox-nightly menu immediately after clicking, half expected size (130.80 KB, image/png)
2018-08-06 12:53 UTC, Zbigniew Jędrzejewski-Szmek
no flags Details
firefox-nightly menu after a few seconds, normal size (137.73 KB, image/png)
2018-08-06 12:54 UTC, Zbigniew Jędrzejewski-Szmek
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Mozilla Foundation 1481234 0 None None None Never

Description Zbigniew Jędrzejewski-Szmek 2018-06-12 14:30:56 UTC
Created attachment 1450524 [details]
firefox-wayland showing help menu

Description of problem:
Firefox wayland displays dialogs double the expected size when running on a hidpi screen. Please see attached screenshots, which compare firefox-x11 and firefox-wayland. firefox-x11 behaves as expected.

In addition to the obvious display problems, it seems that mouse clicks go in the wrong place (I tried to click, but nothing happens). I assume that this is somehow realted, but that is harder to quantify.

Version-Release number of selected component (if applicable):
firefox-60.0.1-6.fc28.x86_64

How reproducible:
100%, I restarted firefox a few times and I always get the same result. I had a low-dpi screen connected to this laptop, and I didn't restart the session yet. I'm not sure if this could have any influence.

Comment 1 Zbigniew Jędrzejewski-Szmek 2018-06-12 14:31:53 UTC
Created attachment 1450525 [details]
firefox-x11 showing the help menu (proper scaling)

Comment 2 Zbigniew Jędrzejewski-Szmek 2018-06-12 14:32:49 UTC
Created attachment 1450526 [details]
firefox-wayland ask password dialogue

Comment 3 Zbigniew Jędrzejewski-Szmek 2018-06-12 14:33:56 UTC
Created attachment 1450527 [details]
firefox-wayland showing html menu

Comment 4 Martin Stransky 2018-08-06 11:15:35 UTC
Can you please retest with latest build from https://firefox-flatpak.mojefedora.cz/ ?

Comment 5 Martin Stransky 2018-08-06 11:16:29 UTC
*** Bug 1595779 has been marked as a duplicate of this bug. ***

Comment 6 Zbigniew Jędrzejewski-Szmek 2018-08-06 12:51:09 UTC
Yes, it seems greatly improved with nightly.

I'm using https://bugs.freedesktop.org/query.cgi?format=report-table as a test case. Menus are displayed properly mostly. One strange effect that I'm observing is that the menus are initially displayed at ~half size, and then after a fraction of a second are scaled to the expected size. This does not occur under x11. It took me quite a few tries, but I managed to print-scrint the half-size window, see attached screenshot.

Comment 7 Zbigniew Jędrzejewski-Szmek 2018-08-06 12:53:07 UTC
Created attachment 1473601 [details]
firefox-nightly menu immediately after clicking, half expected size

Comment 8 Zbigniew Jędrzejewski-Szmek 2018-08-06 12:54:18 UTC
Created attachment 1473602 [details]
firefox-nightly menu after a few seconds, normal size

Comment 9 Zbigniew Jędrzejewski-Szmek 2018-08-06 12:56:54 UTC
(This is just a minor visual glitch though... doesn't influence usability)

Comment 10 Zbigniew Jędrzejewski-Szmek 2018-08-06 12:58:53 UTC
After some futher testing, occasionally the menu will get stuck at the reduced size.

Comment 11 Martin Stransky 2018-08-06 14:33:00 UTC
(In reply to Zbigniew Jędrzejewski-Szmek from comment #7)
> Created attachment 1473601 [details]
> firefox-nightly menu immediately after clicking, half expected size

Do you mind do file upstream bug about at at bugzilla.mozilla.org and cc me there? Would be better to track it there. Thanks.

Comment 12 Jan Kurik 2018-08-14 09:58:22 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 29 development cycle.
Changing version to '29'.

Comment 13 Martin Stransky 2018-10-11 12:32:21 UTC
Should be fixed now.


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