Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 3dc3ba3a4d52cd8f24e6c7d491b90b2830f5bcd8
      
https://github.com/WebKit/WebKit/commit/3dc3ba3a4d52cd8f24e6c7d491b90b2830f5bcd8
  Author: Chris Fleizach <[email protected]>
  Date:   2026-03-16 (Mon, 16 Mar 2026)

  Changed paths:
    A 
LayoutTests/fast/speechsynthesis/speech-synthesis-cancel-queued-utterances-expected.txt
    A 
LayoutTests/fast/speechsynthesis/speech-synthesis-cancel-queued-utterances.html
    M Source/WebCore/Modules/speech/SpeechSynthesis.cpp
    M Source/WebCore/platform/mock/PlatformSpeechSynthesizerMock.cpp

  Log Message:
  -----------
  Web Speech API: `speechSynthesis.clear()` removes utterances from following 
`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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to