Bug 226288

Summary: AX: contextmenu event not triggered for ARIA treeitem
Product: WebKit Reporter: Todd Kloots <todd.kloots>
Component: AccessibilityAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari 14   
Hardware: Mac (Intel)   
OS: macOS 11   
Attachments:
Description Flags
Screen recording illustrating the bug in Safari
none
Screen recording demonstrating how this works correct in Chrome none

Description Todd Kloots 2021-05-26 13:19:07 PDT
Steps to reproduce

Using VoiceOver navigation
1. Start VoiceOver
2. Go to https://codepen.io/toddlr/pen/vYyJyVz
3. Use VoiceOver navigation (e.g. Control-Option-Right Arrow) to navigate to an ARIA treeitem instance
4. Invoke a contextmenu on the ARIA treeitem instance by pressing Control-Option-Shift-M
5. Observe how the custom context menu is NOT displayed, the browser's context menu is displayed instead

Using keyboard shortcuts
1. Start VoiceOver
2. Go to https://codepen.io/toddlr/pen/vYyJyVz
3. Press tab to navigate to the ARIA tree instance
4. Use the arrow keys to move focus to a particular ARIA treeitem
4. Invoke a contextmenu on the ARIA treeitem instance by pressing Control-Option-Shift-M
5. Observe how the custom context menu is NOT displayed, the browser's context menu is displayed instead
Comment 1 Radar WebKit Bug Importer 2021-05-26 13:19:21 PDT
<rdar://problem/78528738>
Comment 2 Todd Kloots 2021-05-26 13:26:25 PDT
Created attachment 429787 [details]
Screen recording illustrating the bug in Safari
Comment 3 Todd Kloots 2021-05-26 13:27:13 PDT
Created attachment 429788 [details]
Screen recording demonstrating how this works correct in Chrome