Title: [291635] branches/safari-613-branch/Source/WebCore
- Revision
- 291635
- Author
- [email protected]
- Date
- 2022-03-22 10:54:42 -0700 (Tue, 22 Mar 2022)
Log Message
Cherry-pick r290526. rdar://problem/89372801
[Cocoa] HLS + Modern EME key rotation causes playback to stall indefinitely
https://bugs.webkit.org/show_bug.cgi?id=237214
<rdar://89372801>
Reviewed by Eric Carlson.
In r275916, Ref was changed to perform pointer equality in its operator==. This caused
takeUnexpectedKeyRequestForInitializationData() to fail to find key requests matching
the initData passed in through MediaKeySession.
Fix the equality test by calling .get() on the Ref, which causes the `==` to resolve to
FragmentedSharedBuffer::operator==().
* platform/graphics/avfoundation/objc/CDMInstanceFairPlayStreamingAVFObjC.mm:
(WebCore::CDMInstanceFairPlayStreamingAVFObjC::takeUnexpectedKeyRequestForInitializationData):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@290526 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Modified Paths
Diff
Modified: branches/safari-613-branch/Source/WebCore/ChangeLog (291634 => 291635)
--- branches/safari-613-branch/Source/WebCore/ChangeLog 2022-03-22 17:54:38 UTC (rev 291634)
+++ branches/safari-613-branch/Source/WebCore/ChangeLog 2022-03-22 17:54:42 UTC (rev 291635)
@@ -1,5 +1,46 @@
2022-03-21 Alan Coon <[email protected]>
+ Cherry-pick r290526. rdar://problem/89372801
+
+ [Cocoa] HLS + Modern EME key rotation causes playback to stall indefinitely
+ https://bugs.webkit.org/show_bug.cgi?id=237214
+ <rdar://89372801>
+
+ Reviewed by Eric Carlson.
+
+ In r275916, Ref was changed to perform pointer equality in its operator==. This caused
+ takeUnexpectedKeyRequestForInitializationData() to fail to find key requests matching
+ the initData passed in through MediaKeySession.
+
+ Fix the equality test by calling .get() on the Ref, which causes the `==` to resolve to
+ FragmentedSharedBuffer::operator==().
+
+ * platform/graphics/avfoundation/objc/CDMInstanceFairPlayStreamingAVFObjC.mm:
+ (WebCore::CDMInstanceFairPlayStreamingAVFObjC::takeUnexpectedKeyRequestForInitializationData):
+
+
+ git-svn-id: https://svn.webkit.org/repository/webkit/trunk@290526 268f45cc-cd09-0410-ab3c-d52691b4dbfc
+
+ 2022-02-25 Jer Noble <[email protected]>
+
+ [Cocoa] HLS + Modern EME key rotation causes playback to stall indefinitely
+ https://bugs.webkit.org/show_bug.cgi?id=237214
+ <rdar://89372801>
+
+ Reviewed by Eric Carlson.
+
+ In r275916, Ref was changed to perform pointer equality in its operator==. This caused
+ takeUnexpectedKeyRequestForInitializationData() to fail to find key requests matching
+ the initData passed in through MediaKeySession.
+
+ Fix the equality test by calling .get() on the Ref, which causes the `==` to resolve to
+ FragmentedSharedBuffer::operator==().
+
+ * platform/graphics/avfoundation/objc/CDMInstanceFairPlayStreamingAVFObjC.mm:
+ (WebCore::CDMInstanceFairPlayStreamingAVFObjC::takeUnexpectedKeyRequestForInitializationData):
+
+2022-03-21 Alan Coon <[email protected]>
+
Cherry-pick r290519. rdar://problem/89148022
Re-add YouTubePluginReplacement, removed in r285252
Modified: branches/safari-613-branch/Source/WebCore/platform/graphics/avfoundation/objc/CDMInstanceFairPlayStreamingAVFObjC.mm (291634 => 291635)
--- branches/safari-613-branch/Source/WebCore/platform/graphics/avfoundation/objc/CDMInstanceFairPlayStreamingAVFObjC.mm 2022-03-22 17:54:38 UTC (rev 291634)
+++ branches/safari-613-branch/Source/WebCore/platform/graphics/avfoundation/objc/CDMInstanceFairPlayStreamingAVFObjC.mm 2022-03-22 17:54:42 UTC (rev 291635)
@@ -272,7 +272,7 @@
auto& request = *requestIter;
auto requestType = initTypeForRequest(request.get());
auto requestInitData = initializationDataForRequest(request.get());
- if (initDataType != requestType || initData != requestInitData)
+ if (initDataType != requestType || initData != requestInitData.get())
continue;
return m_unexpectedKeyRequests.take(requestIter);
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes