Title: [247848] branches/safari-608.1-branch/Source/WebCore
- Revision
- 247848
- Author
- [email protected]
- Date
- 2019-07-25 17:44:02 -0700 (Thu, 25 Jul 2019)
Log Message
Cherry-pick r247620. rdar://problem/53519933
Crash under WebPage::boundaryEventOccurred
https://bugs.webkit.org/show_bug.cgi?id=199907
Reviewed by Chris Fleizach.
Add null pointer checks.
No new tests, since I have not been able to reproduce this in a test.
* Modules/speech/SpeechSynthesis.cpp:
(WebCore::SpeechSynthesis::didStartSpeaking):
(WebCore::SpeechSynthesis::didFinishSpeaking):
(WebCore::SpeechSynthesis::didPauseSpeaking):
(WebCore::SpeechSynthesis::didResumeSpeaking):
(WebCore::SpeechSynthesis::speakingErrorOccurred):
(WebCore::SpeechSynthesis::boundaryEventOccurred):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@247620 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Modified Paths
Diff
Modified: branches/safari-608.1-branch/Source/WebCore/ChangeLog (247847 => 247848)
--- branches/safari-608.1-branch/Source/WebCore/ChangeLog 2019-07-26 00:41:37 UTC (rev 247847)
+++ branches/safari-608.1-branch/Source/WebCore/ChangeLog 2019-07-26 00:44:02 UTC (rev 247848)
@@ -1,3 +1,46 @@
+2019-07-25 Alan Coon <[email protected]>
+
+ Cherry-pick r247620. rdar://problem/53519933
+
+ Crash under WebPage::boundaryEventOccurred
+ https://bugs.webkit.org/show_bug.cgi?id=199907
+
+ Reviewed by Chris Fleizach.
+
+ Add null pointer checks.
+
+ No new tests, since I have not been able to reproduce this in a test.
+
+ * Modules/speech/SpeechSynthesis.cpp:
+ (WebCore::SpeechSynthesis::didStartSpeaking):
+ (WebCore::SpeechSynthesis::didFinishSpeaking):
+ (WebCore::SpeechSynthesis::didPauseSpeaking):
+ (WebCore::SpeechSynthesis::didResumeSpeaking):
+ (WebCore::SpeechSynthesis::speakingErrorOccurred):
+ (WebCore::SpeechSynthesis::boundaryEventOccurred):
+
+
+ git-svn-id: https://svn.webkit.org/repository/webkit/trunk@247620 268f45cc-cd09-0410-ab3c-d52691b4dbfc
+
+ 2019-07-18 Per Arne Vollan <[email protected]>
+
+ Crash under WebPage::boundaryEventOccurred
+ https://bugs.webkit.org/show_bug.cgi?id=199907
+
+ Reviewed by Chris Fleizach.
+
+ Add null pointer checks.
+
+ No new tests, since I have not been able to reproduce this in a test.
+
+ * Modules/speech/SpeechSynthesis.cpp:
+ (WebCore::SpeechSynthesis::didStartSpeaking):
+ (WebCore::SpeechSynthesis::didFinishSpeaking):
+ (WebCore::SpeechSynthesis::didPauseSpeaking):
+ (WebCore::SpeechSynthesis::didResumeSpeaking):
+ (WebCore::SpeechSynthesis::speakingErrorOccurred):
+ (WebCore::SpeechSynthesis::boundaryEventOccurred):
+
2019-07-24 Alan Coon <[email protected]>
Cherry-pick r247746. rdar://problem/53483298
Modified: branches/safari-608.1-branch/Source/WebCore/Modules/speech/SpeechSynthesis.cpp (247847 => 247848)
--- branches/safari-608.1-branch/Source/WebCore/Modules/speech/SpeechSynthesis.cpp 2019-07-26 00:41:37 UTC (rev 247847)
+++ branches/safari-608.1-branch/Source/WebCore/Modules/speech/SpeechSynthesis.cpp 2019-07-26 00:44:02 UTC (rev 247848)
@@ -225,31 +225,43 @@
void SpeechSynthesis::didStartSpeaking()
{
+ if (!m_currentSpeechUtterance)
+ return;
didStartSpeaking(*m_currentSpeechUtterance->platformUtterance());
}
void SpeechSynthesis::didFinishSpeaking()
{
+ if (!m_currentSpeechUtterance)
+ return;
didFinishSpeaking(*m_currentSpeechUtterance->platformUtterance());
}
void SpeechSynthesis::didPauseSpeaking()
{
+ if (!m_currentSpeechUtterance)
+ return;
didPauseSpeaking(*m_currentSpeechUtterance->platformUtterance());
}
void SpeechSynthesis::didResumeSpeaking()
{
+ if (!m_currentSpeechUtterance)
+ return;
didResumeSpeaking(*m_currentSpeechUtterance->platformUtterance());
}
void SpeechSynthesis::speakingErrorOccurred()
{
+ if (!m_currentSpeechUtterance)
+ return;
speakingErrorOccurred(*m_currentSpeechUtterance->platformUtterance());
}
void SpeechSynthesis::boundaryEventOccurred(bool wordBoundary, unsigned charIndex)
{
+ if (!m_currentSpeechUtterance)
+ return;
boundaryEventOccurred(*m_currentSpeechUtterance->platformUtterance(), wordBoundary ? SpeechBoundary::SpeechWordBoundary : SpeechBoundary::SpeechSentenceBoundary, charIndex);
}
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes