Bug 223473 - SpeechSynthesis should honor audioPlaybackRequiresUserGesture setting on iOS
Summary: SpeechSynthesis should honor audioPlaybackRequiresUserGesture setting on iOS
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Accessibility (show other bugs)
Version: WebKit Local Build
Hardware: iPhone / iPad iOS 14
: P2 Normal
Assignee: Timothy Hatcher
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-03-18 12:57 PDT by Timothy Hatcher
Modified: 2021-03-18 15:52 PDT (History)
3 users (show)

See Also:


Attachments
Patch (4.37 KB, patch)
2021-03-18 12:59 PDT, Timothy Hatcher
ews-feeder: commit-queue-
Details | Formatted Diff | Diff
Patch (4.53 KB, patch)
2021-03-18 13:13 PDT, Timothy Hatcher
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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].