Chromium Code Reviews| 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..c427077e173fd84036b01bb2176901c1bcdf4b51 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\' ],' + |
|
ddorwin
2016/07/20 17:05:27
Should we use the same types as in the .js file?
D
jrummell
2016/07/20 19:07:48
Done.
|
| + ' videoCapabilities: [' + |
| + ' { contentType: \'video/webm; codecs="vp9"\' },' + |
| + ' { contentType: \'video/webm; codecs="vp8"\' }' + |
| + ' ]' + |
| + ' }]).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' ], |
| + videoCapabilities: [ |
| + { contentType: 'video/webm; codecs="vp9"' }, |
| + { contentType: 'video/webm; codecs="vp8"' } |
| + ] |
| + }]).then(function(access) { |
| return access.createMediaKeys(); |
| }).then(function(mediaKeys) { |
| // Success, so now create the iframe and try there. |