Index: third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-session-closed-event.html |
diff --git a/third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-session-closed-event.html b/third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-session-closed-event.html |
index e974ccfacae7cb76191138231d6ee78298fb0711..889c99b000386db6729256e9deecc18148ec50dd 100644 |
--- a/third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-session-closed-event.html |
+++ b/third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-session-closed-event.html |
@@ -14,11 +14,10 @@ |
var initDataType; |
var initData; |
var mediaKeySession; |
- getSupportedInitDataType().then(function(type) { |
- initDataType = type; |
+ |
+ navigator.requestMediaKeySystemAccess('org.w3.clearkey', getSimpleConfiguration()).then(function(access) { |
+ initDataType = access.getConfiguration().initDataTypes[0]; |
initData = getInitData(initDataType); |
- return navigator.requestMediaKeySystemAccess('org.w3.clearkey', [{}]); |
- }).then(function(access) { |
return access.createMediaKeys(); |
}).then(function(mediaKeys) { |
mediaKeySession = mediaKeys.createSession(); |