Update web-platform-tests to revision 1cee79240e1a6e2df18faa0ed27c7febada1e3fb

This commit is contained in:
WPT Sync Bot 2019-11-26 08:30:07 +00:00
parent 74bf0ce5c2
commit e77be0ce0f
90 changed files with 1854 additions and 260 deletions

View file

@ -1,6 +1,6 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>&lt;a download&gt; triggered download in sandbox is allowed by allow-downloads-without-user-activation.</title>
<title>&lt;a download&gt; triggered download in sandbox is allowed by allow-downloads.</title>
<link rel="help" href="https://html.spec.whatwg.org/multipage/#attr-iframe-sandbox">
<link rel="help" href="https://html.spec.whatwg.org/multipage/#the-iframe-element">
<script src="/resources/testharness.js"></script>
@ -14,7 +14,7 @@ async_test(t => {
const token = "{{$id:uuid()}}";
var iframe = document.createElement("iframe");
iframe.srcdoc = "<a>Download</a>";
iframe.sandbox = "allow-same-origin allow-downloads-without-user-activation";
iframe.sandbox = "allow-same-origin allow-downloads";
iframe.onload = t.step_func(function () {
iframe.contentWindow.addEventListener(
"unload", t.unreached_func("Unexpected navigation."));
@ -26,6 +26,6 @@ async_test(t => {
});
document.body.appendChild(iframe);
}, "<a download> triggered download in sandbox is allowed by allow-downloads-without-user-activation.");
}, "<a download> triggered download in sandbox is allowed by allow-downloads.");
</script>
</body>

View file

@ -1,6 +1,6 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>Navigation resulted download in sandbox is allowed by allow-downloads-without-user-activation.</title>
<title>Navigation resulted download in sandbox is allowed by allow-downloads.</title>
<meta name="timeout" content="long" />
<link rel="help" href="https://html.spec.whatwg.org/multipage/#attr-iframe-sandbox">
<link rel="help" href="https://html.spec.whatwg.org/multipage/#the-iframe-element">
@ -15,7 +15,7 @@ async_test(t => {
const token = "{{$id:uuid()}}";
var iframe = document.createElement("iframe");
iframe.srcdoc = "<a>Download</a>";
iframe.sandbox = "allow-same-origin allow-downloads-without-user-activation";
iframe.sandbox = "allow-same-origin allow-downloads";
iframe.onload = t.step_func(function () {
iframe.contentWindow.addEventListener(
"unload", t.unreached_func("Unexpected navigation."));
@ -29,6 +29,6 @@ async_test(t => {
});
document.body.appendChild(iframe);
}, "Navigation resulted download in sandbox is allowed by allow-downloads-without-user-activation.");
}, "Navigation resulted download in sandbox is allowed by allow-downloads.");
</script>
</body>