| Index: Source/modules/speech/SpeechSynthesis.cpp
|
| diff --git a/Source/modules/speech/SpeechSynthesis.cpp b/Source/modules/speech/SpeechSynthesis.cpp
|
| index 087691afac0be9f2361a80e216939b0a5c2af092..9ff4ae7bb65d32ec5e94459084e5c16a25bf0309 100644
|
| --- a/Source/modules/speech/SpeechSynthesis.cpp
|
| +++ b/Source/modules/speech/SpeechSynthesis.cpp
|
| @@ -60,7 +60,7 @@ ExecutionContext* SpeechSynthesis::executionContext() const
|
| void SpeechSynthesis::voicesDidChange()
|
| {
|
| m_voiceList.clear();
|
| - if (!executionContext()->activeDOMObjectsAreStopped())
|
| + if (executionContext() && !executionContext()->activeDOMObjectsAreStopped())
|
| dispatchEvent(Event::create(EventTypeNames::voiceschanged));
|
| }
|
|
|
| @@ -145,7 +145,7 @@ void SpeechSynthesis::resume()
|
|
|
| void SpeechSynthesis::fireEvent(const AtomicString& type, SpeechSynthesisUtterance* utterance, unsigned long charIndex, const String& name)
|
| {
|
| - if (!executionContext()->activeDOMObjectsAreStopped())
|
| + if (executionContext() && !executionContext()->activeDOMObjectsAreStopped())
|
| utterance->dispatchEvent(SpeechSynthesisEvent::create(type, charIndex, (currentTime() - utterance->startTime()), name));
|
| }
|
|
|
|
|