Bug 433011 - Firefox Wayland context menus don't properly display updates for cursor movement
Summary: Firefox Wayland context menus don't properly display updates for cursor movement
Status: RESOLVED UPSTREAM
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (show other bugs)
Version: 5.21.0
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL: https://bugzilla.mozilla.org/show_bug...
Keywords:
: 434056 (view as bug list)
Depends on:
Blocks:
 
Reported: 2021-02-16 15:20 UTC by tempel.julian
Modified: 2021-05-31 13:35 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Shows menu issue difference between FF85 and FF86 (2.25 MB, video/mp4)
2021-02-17 11:00 UTC, Schlaefer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tempel.julian 2021-02-16 15:20:03 UTC
SUMMARY

Firefox Wayland context menus don't properly display updates for cursor movement

STEPS TO REPRODUCE

1. Open Firefox 86 beta with Webrender + Wayland
2. Right-click into a website to trigger the context menu
3. move the cursor over it

OBSERVED RESULT

The menu selection doesn't follow the cursor. Fortunately this seems to be a rather cosmetic issue. It's not related to Firefox' Wayland widget vsync source.

EXPECTED RESULT

The selection indicator should follow the cursor like on Xorg or on Sway.

SOFTWARE/OS VERSIONS

Linux/KDE Plasma: Linux 5.11
KDE Plasma Version: 5.21
KDE Frameworks Version: 5.79
Qt Version: 5.15.2
Comment 1 Vlad Zahorodnii 2021-02-16 21:17:46 UTC
Does it look something like this https://bugzilla.mozilla.org/show_bug.cgi?id=1685263#c3 ?
Comment 2 tempel.julian 2021-02-16 22:26:55 UTC
I haven't noticed any flickering yet, though your screenshot with the entry selection getting visually "stuck" looks a lot like it.
I btw. deliberatly turned off widget vsync source in Firefox via about:config to rule it out as the culprit, it seemed to be entirely the same with it on or off.
Comment 3 Schlaefer 2021-02-17 11:00:24 UTC
Created attachment 135759 [details]
Shows menu issue difference between FF85 and FF86

I experience the same issue. 

It's not flickering as in FF85 or earlier anymore. In FF86 the menu is drawn stable, but it doesn't properly update when the pointer is moved over it (e.g. invert menu item under pointer).

See attached video for comparison. 

Operating System: EndeavourOS
KDE Plasma Version: 5.21.0
KDE Frameworks Version: 5.79.0
Qt Version: 5.15.2
Kernel Version: 5.11.0-zen1-1-zen
OS Type: 64-bit
Graphics Platform: Wayland - Multiple screens with different scaling factors
Comment 4 tempel.julian 2021-03-25 12:16:26 UTC
Is a fix realistic for Plasma 5.22? This seems to be one of the last, if not the only remaining blocker issue for FF Wayland on Plasma, if I'm not mistaken. :)
Comment 5 Nate Graham 2021-03-25 16:36:46 UTC
Seems like an upstream issue?
Comment 6 tempel.julian 2021-04-03 21:23:12 UTC
Yes, Vlad worked things out with the Firefox devs and it has been fixed upstream in FF Nightly. Thanks! :)

Thus closing. Btw. have you noticed that sometimes right mouse button clicks go through the Firefox window surface and instead open the context menu of the Plasma desktop? Is this an aspect of a remaining subsurface issue?
Comment 7 Vlad Zahorodnii 2021-04-07 19:39:46 UTC
I remember investigating this issue and it was firefox providing bad input region iirc.
Comment 8 Patrick Silva 2021-05-31 13:35:39 UTC
*** Bug 434056 has been marked as a duplicate of this bug. ***