Bug 254422

Summary: AX: VoiceOver reads button twice when opening dialog
Product: WebKit Reporter: Liam DeBeasi <ldebeasi>
Component: AccessibilityAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: andresg_22, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari 16   
Hardware: All   
OS: All   
Attachments:
Description Flags
Code reproduction none

Description Liam DeBeasi 2023-03-24 08:00:20 PDT
Created attachment 465572 [details]
Code reproduction

Opening a dialog with VoiceOver enabled causes VoiceOver to re-read the button that presented the dialog before moving focus to the dialog.

Steps to reproduce:

1. Open attached code reproduction on iOS 16+.
2. Turn VoiceOver on.
3. Tap the "Show the dialog" button. VoiceOver should announce "Show the dialog".
4. Double tap the button to activate. VoiceOver should begin to announce "Show the dialog" again before announcing the dialog.

Expected Behavior:

I expect VoiceOver to not announce "Show the dialog" when activating the button.

Actual Behavior:

VoiceOver announces "Show the dialog" when activating the button.

Other Info:

- I cannot reproduce this in iOS 15.6
- I can reproduce this in iOS 16.4
Comment 1 Radar WebKit Bug Importer 2023-03-24 08:00:30 PDT
<rdar://problem/107186693>