Update web-platform-tests to revision be5419e845d39089ba6dc338c1bd0fa279108317

This commit is contained in:
Josh Matthews 2018-01-04 13:44:24 -05:00
parent aa199307c8
commit 2b6f573eb5
3440 changed files with 109438 additions and 41750 deletions

View file

@ -10,7 +10,7 @@ function runTest(config) {
resolve(iframe);
};
iframe.sandbox = sandbox;
iframe.src = src;
iframe.srcdoc = src;
document.documentElement.appendChild(iframe);
});
}
@ -25,7 +25,7 @@ function runTest(config) {
}
promise_test(function (test) {
var script = 'data:text/html,' +
var script =
'<script>' +
' window.onmessage = function(e) {' +
' navigator.requestMediaKeySystemAccess("' + config.keysystem + '", [{' +
@ -53,7 +53,7 @@ function runTest(config) {
return access.createMediaKeys();
}).then(function (mediaKeys) {
// Success, so now create the iframe and try there.
return load_iframe(script, 'allow-scripts');
return load_iframe(script, 'allow-scripts allow-secure-context');
}).then(function (iframe) {
iframe.contentWindow.postMessage({}, '*');
return wait_for_message();