Title: [212422] tags/Safari-604.1.6/Source/WebCore
- Revision
- 212422
- Author
- [email protected]
- Date
- 2017-02-15 21:53:49 -0800 (Wed, 15 Feb 2017)
Log Message
Merge r212420. <rdar://problem/30547188> REGRESSION (212311): Media player crashes on Facebook.com
Modified Paths
Diff
Modified: tags/Safari-604.1.6/Source/WebCore/ChangeLog (212421 => 212422)
--- tags/Safari-604.1.6/Source/WebCore/ChangeLog 2017-02-16 05:00:25 UTC (rev 212421)
+++ tags/Safari-604.1.6/Source/WebCore/ChangeLog 2017-02-16 05:53:49 UTC (rev 212422)
@@ -1,3 +1,22 @@
+2017-02-15 Jason Marcell <[email protected]>
+
+ Merge r212420. rdar://problem/30547188
+
+ 2017-02-15 Jer Noble <[email protected]>
+
+ REGRESSION (r212311): NULL-dereference in HTMLMediaElement::prepareToPlay()
+ https://bugs.webkit.org/show_bug.cgi?id=168404
+ <rdar://problem/30547188>
+
+ Reviewed by Brian Weinstein.
+
+ Prior to r212311, m_player was always guaranteed to be initialized when calling
+ prepareToPlay(). r212311 began calling prepareToPlay() on a subsequent run-loop iteration
+ after creating m_player. So now check whether m_player is NULL before calling methods on it.
+
+ * html/HTMLMediaElement.cpp:
+ (WebCore::HTMLMediaElement::prepareToPlay):
+
2017-02-15 Zan Dobersek <[email protected]>
[EME] MediaKeys::setServerCertificate() must resolve with 'false' when certificates aren't supported
Modified: tags/Safari-604.1.6/Source/WebCore/html/HTMLMediaElement.cpp (212421 => 212422)
--- tags/Safari-604.1.6/Source/WebCore/html/HTMLMediaElement.cpp 2017-02-16 05:00:25 UTC (rev 212421)
+++ tags/Safari-604.1.6/Source/WebCore/html/HTMLMediaElement.cpp 2017-02-16 05:53:49 UTC (rev 212422)
@@ -2558,7 +2558,8 @@
if (m_havePreparedToPlay)
return;
m_havePreparedToPlay = true;
- m_player->prepareToPlay();
+ if (m_player)
+ m_player->prepareToPlay();
}
void HTMLMediaElement::fastSeek(double time)
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes