Web Speech API: speechSynthesis.clear() removes utterances from following speechSynthesis.speak(...) as well#60457
Merged
webkit-commit-queue merged 1 commit intoWebKit:mainfrom Mar 16, 2026
Conversation
Collaborator
|
EWS run on previous version of this PR (hash 25dfc71) Details
|
twilco
approved these changes
Mar 12, 2026
Collaborator
macOS Safer C++ Build #85570 (25dfc71)❌ Found 1 failing file with 1 issue. Please address these issues before landing. See WebKit Guidelines for Safer C++ Programming. |
Collaborator
iOS Safer C++ Build #3799 (25dfc71)❌ Found 1 failing file with 1 issue. Please address these issues before landing. See WebKit Guidelines for Safer C++ Programming. |
25dfc71 to
9922248
Compare
Collaborator
|
EWS run on current version of this PR (hash 9922248) Details |
…lowing `speechSynthesis.speak(...)` as well https://bugs.webkit.org/show_bug.cgi?id=191745 rdar://46151521 Reviewed by Tyler Wilcock. Because cancel() callbacks happen asynchronously on the platform synthesizer, they can clear out the wrong utterance. Test: fast/speechsynthesis/speech-synthesis-cancel-queued-utterances.html * LayoutTests/fast/speechsynthesis/speech-synthesis-cancel-queued-utterances-expected.txt: Added. * LayoutTests/fast/speechsynthesis/speech-synthesis-cancel-queued-utterances.html: Added. * Source/WebCore/Modules/speech/SpeechSynthesis.cpp: (WebCore::SpeechSynthesis::cancel): (WebCore::SpeechSynthesis::handleSpeakingCompleted): * Source/WebCore/platform/mock/PlatformSpeechSynthesizerMock.cpp: (WebCore::PlatformSpeechSynthesizerMock::cancel): Canonical link: https://commits.webkit.org/309349@main
9922248 to
3dc3ba3
Compare
Collaborator
|
Committed 309349@main (3dc3ba3): https://commits.webkit.org/309349@main Reviewed commits have been landed. Closing PR #60457 and removing active labels. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
3dc3ba3
9922248