Bug 1936092

Summary: Menu items under the cursor usually aren't highlighted in Firefox 86.0-88.0a1 on Wayland in Plasma 5.21 in F34
Product: [Fedora] Fedora Reporter: Matt Fagnani <matt.fagnani>
Component: firefoxAssignee: Gecko Maintainer <gecko-bugs-nobody>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 34CC: erack, gecko-bugs-nobody, jhorak, kai-engert-fedora, pjasicek, rhughes, rstrode, sandmann
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-05-12 19:47:23 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:

Description Matt Fagnani 2021-03-06 16:41:06 UTC
Description of problem:

When I click on menus in the menu bar of Firefox Nightly 86.0a1 (2021-1-15) - 88.0a1 (2021-3-6) and 86.0 on Wayland with WebRender enabled in a Fedora 34 KDE Plasma installation with Plasma 5.21.2 and earlier, the menu items under the cursor usually aren't highlighted. Sometimes just the first item in the menu was highlighted. Occasionally multiple items in the menu were highlighted at the same time. The menus shown when right-clicking on a page are also affected by this issue. This problem started with 86.0a1 (2021-1-15). I ran the following to look for the commit involved
MOZ_ENABLE_WAYLAND=1 mozregression --good 2021-1-13 --bad 2021-1-18

The end of the process showed
13:17.81 INFO: Narrowed integration regression window from [25680895, 8a9e98e5] (4 builds) to [376c2ff6, 8a9e98e5] (2 builds) (~1 steps left)
13:17.81 INFO: No more integration revisions, bisection finished.
13:17.81 INFO: Last good revision: 376c2ff62872fbf7cc25803f9cbdcd42f8c1fe6c
13:17.81 INFO: First bad revision: 8a9e98e50d031c7a72429a08aad7325f50e34d2e
13:17.81 INFO: Pushlog:
https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=376c2ff62872fbf7cc25803f9cbdcd42f8c1fe6c&tochange=8a9e98e50d031c7a72429a08aad7325f50e34d2e

The first bad revision was https://hg.mozilla.org/integration/autoland/rev/8a9e98e50d031c7a72429a08aad7325f50e34d2e

Bug 1686703 [Wayland] Merge GetWaylandBufferWithSwitch()/GetWaylandBufferRecent() to GetWaylandBuffer(), r=jhorak

Depends on D101746

Differential Revision: https://phabricator.services.mozilla.com/D101747

The problem doesn't affect 86.0a1-88.0a1 and 86.0 on X in Plasma on Wayland with the same Firefox settings and system versions.

Version-Release number of selected component (if applicable):
firefox-86.0-7.fc34.x86_64
kwin-wayland-5.21.2-1.fc34.x86_64
kf5-plasma-5.79.0-2.fc34.x86_64
qt5-qtbase-5.15.2-13.fc34.x86_64
gtk3-3.24.26-1.fc34.x86_64

How reproducible:
This problem happened most of the time. Some menu items infrequently became highlighted when the cursor was over them and remained so after the cursor was moved over other itmes.

Steps to Reproduce:
1. Boot a Fedora 34 KDE Plasma installation updated to 2021-3-6 with the updates-testing repo enabled
2. Log in to Plasma 5.21.2 on Wayland
3. Install firefox-wayland if it isn't already with
sudo dnf install firefox-wayland
4  Start Firefox 86.0 on Wayland with WebRender compositing enabled 
5. Show the menu bar if it isn't already by right-clicking on the tab area and selecting Menu bar
5. Select the Bookmarks menu
6. Move the cursor up and down over the Bookmarks menu
7. Repeat 5-6 for other menus in the menu bar
8. Go to a site such as https://bugzilla.mozilla.org
9. Right-click somewhere on the page
10. Move the cursor up and down the right-click menu

Actual results:
Menu items under the cursor usually aren't highlighted in Firefox 86.0-88.0a1 on Wayland

Expected results:
Menu items under the cursor would be highlighted normally 

Additional info:
I reported this problem at https://bugzilla.mozilla.org/show_bug.cgi?id=1693472
Vlad Zahorodnii's comments on that report seemed to indicate that the underlying problem might involve kwin_wayland. I'm unsure if the problem is in Firefox or kwin_wayland. I reported this problem against kwin at https://bugs.kde.org/show_bug.cgi?id=434056

Comment 1 Ben Cotton 2022-05-12 15:24:29 UTC
This message is a reminder that Fedora Linux 34 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora Linux 34 on 2022-06-07.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
'version' of '34'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, change the 'version' 
to a later Fedora Linux version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora Linux 34 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora Linux, you are encouraged to change the 'version' to a later version
prior to this bug being closed.

Comment 2 Matt Fagnani 2022-05-12 19:47:23 UTC
This problem was fixed upstream in Firefox 89 https://bugzilla.mozilla.org/show_bug.cgi?id=1693472