Title: [241889] branches/safari-607-branch/Source/WebCore
- Revision
- 241889
- Author
- [email protected]
- Date
- 2019-02-21 13:27:22 -0800 (Thu, 21 Feb 2019)
Log Message
Cherry-pick r241738. rdar://problem/48243338
Uncaught Exception crash in MediaPlayerPrivateAVFoundationObjC::setShouldObserveTimeControlStatus()
https://bugs.webkit.org/show_bug.cgi?id=194786
Reviewed by Eric Carlson.
Convert a runtime crash to a debug assert by wrapping the call to -[AVPlayer removeObserver:forKeyPath:]
in an exception handler.
* platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
(WebCore::MediaPlayerPrivateAVFoundationObjC::setShouldObserveTimeControlStatus):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@241738 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Modified Paths
Diff
Modified: branches/safari-607-branch/Source/WebCore/ChangeLog (241888 => 241889)
--- branches/safari-607-branch/Source/WebCore/ChangeLog 2019-02-21 21:27:19 UTC (rev 241888)
+++ branches/safari-607-branch/Source/WebCore/ChangeLog 2019-02-21 21:27:22 UTC (rev 241889)
@@ -1,5 +1,35 @@
2019-02-20 Alan Coon <[email protected]>
+ Cherry-pick r241738. rdar://problem/48243338
+
+ Uncaught Exception crash in MediaPlayerPrivateAVFoundationObjC::setShouldObserveTimeControlStatus()
+ https://bugs.webkit.org/show_bug.cgi?id=194786
+
+ Reviewed by Eric Carlson.
+
+ Convert a runtime crash to a debug assert by wrapping the call to -[AVPlayer removeObserver:forKeyPath:]
+ in an exception handler.
+
+ * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
+ (WebCore::MediaPlayerPrivateAVFoundationObjC::setShouldObserveTimeControlStatus):
+
+ git-svn-id: https://svn.webkit.org/repository/webkit/trunk@241738 268f45cc-cd09-0410-ab3c-d52691b4dbfc
+
+ 2019-02-18 Jer Noble <[email protected]>
+
+ Uncaught Exception crash in MediaPlayerPrivateAVFoundationObjC::setShouldObserveTimeControlStatus()
+ https://bugs.webkit.org/show_bug.cgi?id=194786
+
+ Reviewed by Eric Carlson.
+
+ Convert a runtime crash to a debug assert by wrapping the call to -[AVPlayer removeObserver:forKeyPath:]
+ in an exception handler.
+
+ * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
+ (WebCore::MediaPlayerPrivateAVFoundationObjC::setShouldObserveTimeControlStatus):
+
+2019-02-20 Alan Coon <[email protected]>
+
Cherry-pick r241721. rdar://problem/48243376
AX: PSON: Going back from apple.com to search results, cannot interact with HTML content. Disabling Swap Processes on Cross-Site Navigation resolves the issue.
Modified: branches/safari-607-branch/Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm (241888 => 241889)
--- branches/safari-607-branch/Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm 2019-02-21 21:27:19 UTC (rev 241888)
+++ branches/safari-607-branch/Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm 2019-02-21 21:27:22 UTC (rev 241889)
@@ -3359,10 +3359,13 @@
return;
m_shouldObserveTimeControlStatus = shouldObserve;
- if (shouldObserve)
+ if (shouldObserve) {
[m_avPlayer addObserver:m_objcObserver.get() forKeyPath:@"timeControlStatus" options:NSKeyValueObservingOptionNew context:(void *)MediaPlayerAVFoundationObservationContextPlayer];
- else
+ } else {
+BEGIN_BLOCK_OBJC_EXCEPTIONS
[m_avPlayer removeObserver:m_objcObserver.get() forKeyPath:@"timeControlStatus"];
+END_BLOCK_OBJC_EXCEPTIONS
+ }
}
NSArray* assetMetadataKeyNames()
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes