-
cfleizach@apple.com authored
https://bugs.webkit.org/show_bug.cgi?id=113937 Reviewed by Tim Horton. Source/WebCore: Protect against the case when invalid data is passed in. Test: platform/mac/fast/speechsynthesis/speech-synthesis-crash-on-bad-utterance.html * Modules/speech/SpeechSynthesis.cpp: (WebCore::SpeechSynthesis::speak): * Modules/speech/SpeechSynthesisUtterance.cpp: (WebCore::SpeechSynthesisUtterance::setVoice): LayoutTests: * platform/mac/fast/speechsynthesis/speech-synthesis-crash-on-bad-utterance-expected.txt: Added. * platform/mac/fast/speechsynthesis/speech-synthesis-crash-on-bad-utterance.html: Added. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@147800 268f45cc-cd09-0410-ab3c-d52691b4dbfc
e73c07ab