Window Device Pixel Ratios incorrectly set on Swaywm in Nightly 135.0a1 20241218012535
Categories
(Core :: Widget: Gtk, defect, P3)
Tracking
()
People
(Reporter: flare561, Unassigned)
References
(Blocks 1 open bug)
Details
Attachments
(2 files)
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:135.0) Gecko/20100101 Firefox/135.0
Steps to reproduce:
I have a 4k monitor with a 2x scale factor set in Swaywm under Arch linux
output DP-2 pos 1920 0 mode 3840x2160@60Hz scale 2
in sway config
I update firefox to Nightly 135.0a1 build ID 20241218012535 from build ID 20241215043337 (which works as expected)
I launch firefox with MOZ_ENABLE_WAYLAND=1
Actual results:
Text rendering is poor, and under about:support "Window Device Pixel Ratios" shows a value of 1
Expected results:
Text rendering is clear and "Window Device Pixel Ratios" is set to 2
Comment 1•2 months ago
|
||
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.
Reporter | ||
Comment 2•1 month ago
|
||
I used Mozregression to bisect this issue, and I believe the commit that caused this change was https://phabricator.services.mozilla.com/D230859
Reporter | ||
Comment 3•1 month ago
|
||
Looks like this may have been fixed by 20241230044734 at the latest. I'll close this as invalid
Reporter | ||
Updated•1 month ago
|
Reporter | ||
Comment 4•1 month ago
|
||
It came back after upgrading to 136 and I had to downgrade all the way back to 20241215043337 to get it working again. I'm not sure why it was working with newer versions before, or why it broke again, so I've reopened the bug report.
Can you use mozregression again to find the broken commit?
Thanks.
Reporter | ||
Comment 6•18 days ago
|
||
It found https://phabricator.services.mozilla.com/D230859 again. As far as I can tell when I first boot my computer firefox (post 12-15-2024) will incorrectly detect a device pixel ratio of 1 on my monitor, but if I allow my monitors to sleep (output * dpms off
through swayidle) then turn them back on (output * dpms on
again only tested through swayidle), firefox will correctly detect a pixel ratio of 2 until I reboot.
Do you see exactly the 'Window Device Pixel Ratios' 1 in about:support?
Please run Firefox on terminal with MOZ_LOG="Widget:5" and attach the log here.
Thanks.
Reporter | ||
Comment 9•18 days ago
|
||
Yes, about:support shows "Window Device Pixel Ratios 1", and I have attached the requested log.
Can you please run again with:
WAYLAND_DEBUG=1 MOZ_LOG="Widget:5"
and attach the log again.
Thanks.
Looks like dupe of Bug 1943583.
Description
•