Bug 215484

Summary: VoiceOver not able to invoke play button on some web sites.
Product: WebKit Reporter: Andres Gonzalez <andresg_22>
Component: New BugsAssignee: Andres Gonzalez <andresg_22>
Status: RESOLVED FIXED    
Severity: Normal CC: aboxhall, apinheiro, cfleizach, darin, dmazzoni, ews-watchlist, jcraig, jdiggs, samuel_white
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

Description Andres Gonzalez 2020-08-13 18:22:15 PDT
VoiceOver not able to invoke play button on some web sites.
Comment 1 Andres Gonzalez 2020-08-13 18:31:25 PDT
Created attachment 406563 [details]
Patch
Comment 2 Andres Gonzalez 2020-08-13 18:33:51 PDT
<rdar://problem/62729643>
Comment 3 Andres Gonzalez 2020-08-13 18:38:41 PDT
For instance, the play buttons in https://threema.ch/en/faq/callsounds.
Comment 4 EWS 2020-08-13 22:33:42 PDT
Committed r265645: <https://trac.webkit.org/changeset/265645>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 406563 [details].
Comment 5 Darin Adler 2020-08-14 14:57:38 PDT
Comment on attachment 406563 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=406563&action=review

> Source/WebCore/accessibility/ios/AccessibilityObjectIOS.mm:90
> +        for (auto eventName : touchEventNames) {

This should use auto& so we get const AtomString&, rather than auto, which gives us AtomString, otherwise we will have unnecessary reference count churn.
Comment 6 Darin Adler 2020-08-14 14:58:34 PDT
Comment on attachment 406563 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=406563&action=review

>> Source/WebCore/accessibility/ios/AccessibilityObjectIOS.mm:90
>> +        for (auto eventName : touchEventNames) {
> 
> This should use auto& so we get const AtomString&, rather than auto, which gives us AtomString, otherwise we will have unnecessary reference count churn.

Because we’re using reference_wrapper that might require adding a * below. But it will make things a tiny bit more efficient.