Index: third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-unique-origin.html |
diff --git a/third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-unique-origin.html b/third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-unique-origin.html |
index e51597f25241e1376b342519adc7d2e865bd1efb..50dbd1d0500a1fd7a1b557e778490d806eaa1990 100644 |
--- a/third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-unique-origin.html |
+++ b/third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-unique-origin.html |
@@ -35,7 +35,13 @@ |
var script = 'data:text/html,' + |
'<script>' + |
' window.onmessage = function(e) {' + |
- ' navigator.requestMediaKeySystemAccess(\'org.w3.clearkey\', [{}]).then(function(access) {' + |
+ ' navigator.requestMediaKeySystemAccess(\'org.w3.clearkey\', [{' + |
+ ' initDataTypes: [ \'keyids\' ],' + |
+ ' audioCapabilities: [' + |
+ ' { contentType: \'audio/mp4; codecs="mp4a.40.2"\' },' + |
+ ' { contentType: \'audio/webm; codecs="opus"\' }' + |
+ ' ]' + |
+ ' }]).then(function(access) {' + |
' return access.createMediaKeys();' + |
' }).then(function(mediaKeys) {' + |
' window.parent.postMessage({result: \'allowed\'}, \'*\');' + |
@@ -46,7 +52,13 @@ |
'<\/script>'; |
// Verify that this page can create a MediaKeys first. |
- navigator.requestMediaKeySystemAccess('org.w3.clearkey', [{}]).then(function(access) { |
+ navigator.requestMediaKeySystemAccess('org.w3.clearkey', [{ |
+ initDataTypes: [ 'keyids' ], |
+ audioCapabilities: [ |
+ { contentType: 'audio/mp4; codecs="mp4a.40.2"' }, |
+ { contentType: 'audio/webm; codecs="opus"' } |
+ ] |
+ }]).then(function(access) { |
return access.createMediaKeys(); |
}).then(function(mediaKeys) { |
// Success, so now create the iframe and try there. |