Bug 226282

Summary: AX: aria-expanded state not consistently announced by VoiceOver
Product: WebKit Reporter: Todd Kloots <todd.kloots>
Component: AccessibilityAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: cfleizach, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari 14   
Hardware: All   
OS: All   

Description Todd Kloots 2021-05-26 11:28:32 PDT
Currently VoiceOver only announces the aria-expanded state if navigating an ARIA tree using VO navigation. If you navigate using keyboard shortcuts implemented in JavaScript the aria-expanded state is not announced.


Repro steps:

(1) Start VoiceOver
(2) Go to https://codepen.io/toddlr/pen/MWbbree
(3) Use VoiceOver navigation (e.g. Control-Option-Right Arrow) to navigate to an expanded ARIA treeitem instance
(4) Observe VoiceOver announces the treeitem as "expanded"

In contrast, the aria-expanded state IS NOT announced when navigating using keyboard shortcuts implement in JavaScript. For example:

(1) Start VoiceOver
(2) Go to https://codepen.io/toddlr/pen/MWbbree
(3) Move focus to the ARIA tree instance using tab
(4) Use the up/down arrow keys to move focus to an expanded ARIA treeitem
(6) Observe the expanded state change IS NOT announced by VoiceOver
Comment 1 Radar WebKit Bug Importer 2021-05-26 11:28:42 PDT
<rdar://problem/78523584>
Comment 2 chris fleizach 2021-06-01 13:57:29 PDT
we're thinking this is related to how VO processes focus changes. If so, will close the WebKit bug...