Bug 223473

Summary: SpeechSynthesis should honor audioPlaybackRequiresUserGesture setting on iOS
Product: WebKit Reporter: Timothy Hatcher <timothy>
Component: AccessibilityAssignee: Timothy Hatcher <timothy>
Status: RESOLVED FIXED    
Severity: Normal CC: cfleizach, jcraig, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Local Build   
Hardware: iPhone / iPad   
OS: iOS 14   
Attachments:
Description Flags
Patch
ews-feeder: commit-queue-
Patch none

Description Timothy Hatcher 2021-03-18 12:57:02 PDT
iOS always requires a gesture for SpeechSynthesis to speak. But we should allow it to honor the existing audioPlaybackRequiresUserGesture setting.
Comment 1 Radar WebKit Bug Importer 2021-03-18 12:57:25 PDT
<rdar://problem/75586456>
Comment 2 Timothy Hatcher 2021-03-18 12:59:53 PDT Comment hidden (obsolete)
Comment 3 Timothy Hatcher 2021-03-18 13:13:18 PDT
Created attachment 423641 [details]
Patch
Comment 4 chris fleizach 2021-03-18 13:32:45 PDT Comment hidden (obsolete)
Comment 5 chris fleizach 2021-03-18 13:32:46 PDT
Comment on attachment 423641 [details]
Patch

Do we have to worry about that setting changing after document load?
Comment 6 Timothy Hatcher 2021-03-18 13:55:02 PDT
(In reply to chris fleizach from comment #5)
> Comment on attachment 423641 [details]
> Patch
> 
> Do we have to worry about that setting changing after document load?

None of the other places that use this setting worry about that. Also this is checked at time of SpeechSynthesis creation, so any changes before that will be picked up.
Comment 7 EWS 2021-03-18 15:52:53 PDT
Committed r274678: <https://commits.webkit.org/r274678>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 423641 [details].