Bug 241445

Summary: AX: menuitem gets clicked by mistake when using VoiceOver
Product: WebKit Reporter: Diego Haz <hazdiego>
Component: AccessibilityAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Critical CC: andresg_22, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari 15   
Hardware: Mac (Apple Silicon)   
OS: Unspecified   

Description Diego Haz 2022-06-08 19:14:10 PDT
Steps to reproduce:

1. Open https://jsbin.com/wihowazami/1/edit?html,js,console,output on Safari Desktop
2. Activate VoiceOver.
3. Focus on the "Menu button" button.
4. Activate the menu button with VO+Space.
5. Try to move to the second menu item with VO+ArrowRight.
6. See the console output that says the first menu item has been clicked.
Comment 1 Radar WebKit Bug Importer 2022-06-08 19:14:19 PDT
<rdar://problem/94684164>
Comment 2 Diego Haz 2022-06-08 19:31:21 PDT
I just would like to add that this bug happens when the role=menu element is initially hidden (e.g., with display: none), which is the case for most menu widgets.