Bug 254542

Summary: AX: VoiceOver reads button twice when activating with handler
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-27 12:12:23 PDT
Created attachment 465616 [details]
Code reproduction

When activating a button with a handler, VoiceOver re-reads the button content. This can be confusing when users only want to activate the button, not re-read it.

Steps to reproduce:

1. Open reproduction on iOS.
2. Turn VoiceOver on.
3. Tap the button on the page once. VoiceOver will announce the content of the button.
4. Double tap the button to activate it. VoiceOver will announce the content of the button again even while the page is transitioning.

Expected Behavior:

In this case, I would not expect the button to be read again since the button is responsible for doing something that could potentially change the state of the page on click. For example, Messages and Mail on iOS have the expected behavior where the messages/emails are not re-read when their buttons are activated.

Actual Behavior:

The button content is re-read when activating the button.
Comment 1 Radar WebKit Bug Importer 2023-03-27 12:12:36 PDT
<rdar://problem/107278630>
Comment 2 Liam DeBeasi 2023-03-27 12:13:46 PDT
Forgot to mention that I can reproduce this on iOS 16.4