Bug 216500

Summary: AX: Incorrect number of menuitems announced by VoiceOver
Product: WebKit Reporter: Todd Kloots <todd.kloots>
Component: AccessibilityAssignee: Nobody <webkit-unassigned>
Status: RESOLVED MOVED    
Severity: Normal CC: bfulgham, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari 13   
Hardware: All   
OS: All   
Attachments:
Description Flags
Screen recording illustrating the bug in Safari
none
Screen recording illustrating how the count of menuitems is correct for Mac OS menus
none
Video illustrating the bug in Mac OS Sonoma 14.1.1 none

Description Todd Kloots 2020-09-14 16:07:17 PDT
Created attachment 408757 [details]
Screen recording illustrating the bug in Safari

What steps will reproduce the problem?
1. Start VoiceOver
2. Go to https://codepen.io/toddlr/pen/VwadgRE
3. Press tab to move focus to the button labeled "Show menu"
4. Press enter to display the popup menu

What is the expected result?

When the menu is displayed, VoiceOver announces the number of actual menuitems (e.g. the the number of elements with the role of "menuitem." In the case of this example: 5)


What happens instead of that?

When the menu is displayed, VoiceOver announces the number of menuitems per the number of elements with text nodes and/or the role of separator. This count is misleading and doesn't represent the same count provided by VoiceOver for Mac OS menus.
Comment 1 Radar WebKit Bug Importer 2020-09-14 16:07:31 PDT
<rdar://problem/68884512>
Comment 2 Todd Kloots 2020-09-14 16:09:13 PDT
Created attachment 408758 [details]
Screen recording illustrating how the count of menuitems is correct for Mac OS menus

This screen recording illustrates how VoiceOver correctly announces the number of menuitems in a menu for native menus on MacOS - the separators are not included in the count.
Comment 3 Brent Fulgham 2023-04-11 17:26:21 PDT
The cause of this issue is outside of WebKit, so resolving as MOVED.

The relevant team is working on the issue under rdar://68884512.
Comment 4 Todd Kloots 2023-11-30 14:51:09 PST
Created attachment 468829 [details]
Video illustrating the bug in Mac OS Sonoma 14.1.1

This bug remains in Sonoma. Tested using 14.1.1 (23B81). As you can hear VoiceOver incorrectly reports the number of menuitems in the menu when testing in Safari/Webkit. (See attached video.)