Title: [253852] trunk/Source/WebCore
- Revision
- 253852
- Author
- [email protected]
- Date
- 2019-12-20 15:43:48 -0800 (Fri, 20 Dec 2019)
Log Message
MediaKeySession.load() fails
https://bugs.webkit.org/show_bug.cgi?id=205467
Reviewed by Eric Carlson.
Invert the storageURL condition in load().
Drive-by fix: ask the group for it's sessionID, not the session, if it exists.
* platform/graphics/avfoundation/objc/CDMInstanceFairPlayStreamingAVFObjC.mm:
(WebCore::CDMInstanceSessionFairPlayStreamingAVFObjC::loadSession):
(WebCore::CDMInstanceSessionFairPlayStreamingAVFObjC::didProvideRequest):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (253851 => 253852)
--- trunk/Source/WebCore/ChangeLog 2019-12-20 23:30:42 UTC (rev 253851)
+++ trunk/Source/WebCore/ChangeLog 2019-12-20 23:43:48 UTC (rev 253852)
@@ -1,3 +1,18 @@
+2019-12-20 Jer Noble <[email protected]>
+
+ MediaKeySession.load() fails
+ https://bugs.webkit.org/show_bug.cgi?id=205467
+
+ Reviewed by Eric Carlson.
+
+ Invert the storageURL condition in load().
+
+ Drive-by fix: ask the group for it's sessionID, not the session, if it exists.
+
+ * platform/graphics/avfoundation/objc/CDMInstanceFairPlayStreamingAVFObjC.mm:
+ (WebCore::CDMInstanceSessionFairPlayStreamingAVFObjC::loadSession):
+ (WebCore::CDMInstanceSessionFairPlayStreamingAVFObjC::didProvideRequest):
+
2019-12-20 Chris Dumez <[email protected]>
sendBeacon on Safari 13 seeing high failure rates
Modified: trunk/Source/WebCore/platform/graphics/avfoundation/objc/CDMInstanceFairPlayStreamingAVFObjC.mm (253851 => 253852)
--- trunk/Source/WebCore/platform/graphics/avfoundation/objc/CDMInstanceFairPlayStreamingAVFObjC.mm 2019-12-20 23:30:42 UTC (rev 253851)
+++ trunk/Source/WebCore/platform/graphics/avfoundation/objc/CDMInstanceFairPlayStreamingAVFObjC.mm 2019-12-20 23:43:48 UTC (rev 253852)
@@ -729,7 +729,7 @@
UNUSED_PARAM(origin);
if (licenseType == LicenseType::PersistentUsageRecord) {
auto* storageURL = m_instance->storageURL();
- if (!m_instance->persistentStateAllowed() || storageURL) {
+ if (!m_instance->persistentStateAllowed() || !storageURL) {
callback(WTF::nullopt, WTF::nullopt, WTF::nullopt, Failed, SessionLoadFailure::MismatchedSessionType);
return;
}
@@ -872,7 +872,10 @@
if (!weakThis)
return;
- sessionIdentifierChanged(m_session.get().contentProtectionSessionIdentifier);
+ if (m_sessionId.isEmpty()) {
+ auto sessionID = m_group ? m_group.get().contentProtectionSessionIdentifier : m_session.get().contentProtectionSessionIdentifier;
+ sessionIdentifierChanged(sessionID);
+ }
if (error && m_requestLicenseCallback)
m_requestLicenseCallback(SharedBuffer::create(), m_sessionId, false, Failed);
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes