AX: Crash at WebKit: WebKit::WebSpeechSynthesisClient::speak
authorcfleizach@apple.com <cfleizach@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 10 May 2019 17:19:24 +0000 (17:19 +0000)
committercfleizach@apple.com <cfleizach@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 10 May 2019 17:19:24 +0000 (17:19 +0000)
commitf077d9e430fe626e19349c50be1d96a1ea020f8a
tree13dad73c67a607a73969c03b01287136fd48bcc8
parentb6b703a91e101d6bf36aeefb399fd106d67dee49
AX: Crash at WebKit: WebKit::WebSpeechSynthesisClient::speak
https://bugs.webkit.org/show_bug.cgi?id=197761
<rdar://problem/50237614>

Reviewed by Per Arne Vollan.

Source/WebKit:

It's valid for the incoming voice to be nil, so we need to protect against that.

Tests: fast/speechsynthesis/speech-synthesis-real-client-version.html

* WebProcess/WebCoreSupport/WebSpeechSynthesisClient.cpp:
(WebKit::WebSpeechSynthesisClient::speak):

LayoutTests:

* fast/speechsynthesis/speech-synthesis-real-client-version-expected.txt: Added.
* fast/speechsynthesis/speech-synthesis-real-client-version.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@245178 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/speechsynthesis/speech-synthesis-real-client-version-expected.txt [new file with mode: 0644]
LayoutTests/fast/speechsynthesis/speech-synthesis-real-client-version.html [new file with mode: 0644]
Source/WebKit/ChangeLog
Source/WebKit/WebProcess/WebCoreSupport/WebSpeechSynthesisClient.cpp