Bug 1590388

Summary: [wayland] firefox menus wrong scaling in HiDPI mode
Product: [Fedora] Fedora Reporter: Zbigniew Jędrzejewski-Szmek <zbyszek>
Component: firefoxAssignee: Martin Stransky <stransky>
Status: CLOSED WORKSFORME QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 29CC: 0xalen+redhat, abologna, alexl, gecko-bugs-nobody, jhorak, john.j5live, kengert, pjasicek, rhughes, rstrode, sandmann, stransky, zbyszek
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-10-11 12:32:21 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1054334    
Attachments:
Description Flags
firefox-wayland showing help menu
none
firefox-x11 showing the help menu (proper scaling)
none
firefox-wayland ask password dialogue
none
firefox-wayland showing html menu
none
firefox-nightly menu immediately after clicking, half expected size
none
firefox-nightly menu after a few seconds, normal size none

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.