[Wayland] Context and dropdown menus flicker or don't appear reliably with custom font scaling
Categories
(Core :: Widget: Gtk, defect, P2)
Tracking
()
Tracking | Status | |
---|---|---|
firefox-esr78 | --- | unaffected |
firefox-esr91 | --- | wontfix |
firefox91 | --- | wontfix |
firefox92 | --- | wontfix |
firefox93 | --- | fix-optional |
People
(Reporter: ajanovski, Unassigned)
References
(Blocks 1 open bug, Regression)
Details
(Keywords: regression)
Attachments
(4 files)
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:90.0) Gecko/20100101 Firefox/90.0
Steps to reproduce:
Many HTML select lists flicker a lot while moving the mouse from option to option and it is very hard to select an option. The problem occurs on many websites making Firefox nearly impossible to use.
Whether flickering will occur depends on the web page, the position of the select list and other components. I have prepared a sample html file that reproduces the problem.
OS: Fedora Silverblue - Version: 34.20210819.0 (2021-08-19T00:45:01Z)
The problem is not tied to the specific OS updates, since it I occurs with several Firefox installed or download from several different sources. The problem occurs consistently and is reproducible with: OS packaged Firefox, with Flatpak Firefox, with Flatpak Fedora repo Firefox, with Flatpak beta Firefox, with Firefox downloaded as a tar.bz2 from the Mozilla ftp, with all versions from 91.0 onwards.
The problem is not due to profile settings, as I have tested with a newly created profile. In fact I created several profiles, separate for each Firefox download I tested, and the problem occurs consistently.
The problem does not occur with Firefox 90.0 (downloaded from ftp.mozilla.org).
How to reproduce:
-
Download Firefox >= 91.0 from ftp.mozilla.org. Create a new profile.
-
Open the included sample HTML file.
-
Click to open the select list.
-
Move the mouse from option to option.
-
Click on an option.
Actual results:
Under 3: While I move the mouse from option to option, the entire select list flickers (it shown/hidden at a very fast rate - this rate is much slower with Firefox 92 beta, and flickering does not occur with Firefox 90.0).
Under 4: When I try to select an option, the click is rarely detected by the select list and nothing will happen. I need to click several times to succeed. I think the click is received by what is in the background, since it might be so that in that very millisecond of the click the list is not shown.
Expected results:
Under 3: No flickering.
Under 4: Clicking just once to select an option.
Forgot to mention: running on Wayland (default in Fedora Silverblue)
Comment 4•3 years ago
|
||
The Bugbug bot thinks this bug should belong to the 'Core::Widget: Gtk' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.
Comment 5•3 years ago
|
||
Which Wayland compositor do you run?
Updated•3 years ago
|
Comment 6•3 years ago
|
||
Also, if you could pip install --user mozregression
and run MOZ_ENABLE_WAYLAND=1 mozregression --good 90 --bad 91
(or such) it'd be awesome. Thanks!
(In reply to Martin Stránský [:stransky] (ni? me) from comment #5)
Which Wayland compositor do you run?
Fedora Silverblue as is - Gnome 40 (gnome-shell and mutter v40.3)
Silverblue is immutable, so I guess this should be entirely reproducible since it also occurs with the included Firefox.
These are the only layered packages I have on top. I don't think any of those could b
rpm-ostree status
State: idle
Deployments:
● fedora:fedora/34/x86_64/silverblue
Version: 34.20210819.0 (2021-08-19T00:45:01Z)
BaseCommit: dc42b992bf00c7d77e544b8ee8c7700e76b10af78b53e4847c037d53f5c76a19
GPGSignature: Valid signature by 8C5BA6990BDB26E19F2A1A801161AE6945719A39
LayeredPackages: lv2-calf-plugins v4l-utils power-profiles-daemon
lv2-calf-plugins-gui splix gnome-tweaks ladspa-calf-plugins
ardour6 mozilla-openh264 yoshimi calf
fedora-workstation-repositories xsane
In case it matters, hardware is Dell Latitude 5470 (i5-6200U integrated Intel GPU)
(In reply to Emilio Cobos Álvarez (:emilio) from comment #6)
Also, if you could
pip install --user mozregression
and runMOZ_ENABLE_WAYLAND=1 mozregression --good 90 --bad 91
(or such) it'd be awesome. Thanks!
Did not know about this. Excellent tool. Finished the process, this is the last set of messages:
10:35.78 INFO: No more integration revisions, bisection finished.
10:35.78 INFO: Last good revision: 9f0fbb1431721c9eae68a3c94ae49a4d33fdb1f8
10:35.78 INFO: First bad revision: 7b82d177a6b979036f180329be6b029d690d9e0c
10:35.78 INFO: Pushlog:
https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=9f0fbb1431721c9eae68a3c94ae49a4d33fdb1f8&tochange=7b82d177a6b979036f180329be6b029d690d9e0c
Comment 9•3 years ago
|
||
Sweet, thank you! Seems Martin is already on the loop so... :)
Updated•3 years ago
|
Reporter | ||
Comment 10•3 years ago
|
||
Now that I see what this is about (#1661516) maybe it is worth mentioning that I also have issues with the right click context menu -- sometimes the context menu does not open immediately, it only reacts after several clicks. Sometimes it briefly flashes - opens and closes by itself. Sometimes it takes several clicks to respond. Positioning the mouse and then hitting the keyboard shortcut for the context menu opens it at once.
I did a bisect for this too now, and it points to exactly the same place, so I think it's related to this bug:
11:33.89 INFO: No more integration revisions, bisection finished.
11:33.89 INFO: Last good revision: 9f0fbb1431721c9eae68a3c94ae49a4d33fdb1f8
11:33.89 INFO: First bad revision: 7b82d177a6b979036f180329be6b029d690d9e0c
11:33.89 INFO: Pushlog:
https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=9f0fbb1431721c9eae68a3c94ae49a4d33fdb1f8&tochange=7b82d177a6b979036f180329be6b029d690d9e0c
Comment 11•3 years ago
|
||
Thanks. Please run firefox with
MOZ_LOG="WidgetPopup:5"
env variable, reproduce the flickering and attach the log here. Also did you change layout.css.devPixelsPerPx pref at about:config?
Reporter | ||
Comment 12•3 years ago
|
||
(In reply to Martin Stránský [:stransky] (ni? me) from comment #11)
env variable, reproduce the flickering and attach the log here. Also did you change layout.css.devPixelsPerPx pref at about:config?
No, I did not change devPixelsPerPx, but I do have font scaling set (to 1.66) using Gnome Tweaks.
Good lead. Indeed I just tried setting font scaling back to 1 and the flickers are gone. And the right click issue seems solved.
Flickering occurs even with smaller scaling values.
I am also attaching the log you requested where I reproduce the flickering (font scaling set back to 1.66).
Reporter | ||
Comment 13•3 years ago
|
||
Reporter | ||
Comment 14•3 years ago
|
||
(In reply to VA from comment #12)
Good lead. Indeed I just tried setting font scaling back to 1 and the flickers are gone. And the right click issue seems solved.
I have also tried setting devPixelsPerPx to 1.66, the flickers occur again.
I must say that disabling font scaling and devPixelsPerPx fixes the problems I reported, but things are tiny on a 14" 1920x1080 display so one or another type of zoom is needed. It would be better if things worked properly with font scaling.
Comment 15•3 years ago
|
||
Context menus also move diagonally down the screen while flickering during cursor movement.
Updated•3 years ago
|
Updated•3 years ago
|
Description
•