Update web-platform-tests to revision 81962ac8802223d038b188b6f9cb88a0a9c5beee

This commit is contained in:
WPT Sync Bot 2018-05-18 22:02:29 -04:00
parent fe1a057bd1
commit 24183668c4
1960 changed files with 29853 additions and 10555 deletions

View file

@ -13,9 +13,21 @@
<body>
<form action='{{GET[action]}}' target='_self' id='form'>
<input type="text" name="dummy">
<div id="form-div"></div>
</form>
<script>
document.getElementById('form').submit();
try {
url = new URL("{{GET[action]}}", location.href);
for (var p of url.searchParams) {
var elem = document.createElement('input');
elem.type = 'text';
elem.name = p[0];
elem.value = p[1];
document.getElementById('form-div').appendChild(elem);
}
} catch(ex) {}
document.getElementById('form').submit();
</script>
</body>

View file

@ -1,4 +1,4 @@
Expires: Mon, 26 Jul 1997 05:00:00 GMT
Cache-Control: no-store, no-cache, must-revalidate
Pragma: no-cache
Content-Security-Policy: {{GET[csp]}}
Content-Security-Policy: {{GET[csp]}}; report-uri /content-security-policy/support/report.py?op=put&reportID={{GET[report_id]}}

View file

@ -2,12 +2,6 @@
<head>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
window.addEventListener('securitypolicyviolation', function(e) {
window.opener.postMessage({result: 'fail', violatedDirective: e.violatedDirective}, '*');
});
</script>
</head>
<body>

View file

@ -1,4 +1,4 @@
Expires: Mon, 26 Jul 1997 05:00:00 GMT
Cache-Control: no-store, no-cache, must-revalidate
Pragma: no-cache
Content-Security-Policy: {{GET[csp]}}
Content-Security-Policy: {{GET[csp]}}; report-uri /content-security-policy/support/report.py?op=put&reportID={{GET[report_id]}}

View file

@ -2,12 +2,6 @@
<head>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
window.addEventListener('securitypolicyviolation', function(e) {
top.postMessage({result: 'fail', violatedDirective: e.violatedDirective}, '*');
});
</script>
</head>
<body>

View file

@ -1,4 +1,4 @@
Expires: Mon, 26 Jul 1997 05:00:00 GMT
Cache-Control: no-store, no-cache, must-revalidate
Pragma: no-cache
Content-Security-Policy: {{GET[csp]}}
Content-Security-Policy: {{GET[csp]}}; report-uri /content-security-policy/support/report.py?op=put&reportID={{GET[report_id]}}

View file

@ -9,7 +9,7 @@
});
</script>
<meta http-equiv="refresh" content="1; url={{GET[target]}}">
<meta http-equiv="refresh" content="0; url={{GET[target]}}">
</head>
<body>

View file

@ -1,4 +1,4 @@
Expires: Mon, 26 Jul 1997 05:00:00 GMT
Cache-Control: no-store, no-cache, must-revalidate
Pragma: no-cache
Content-Security-Policy: {{GET[csp]}}
Content-Security-Policy: {{GET[csp]}}; report-uri /content-security-policy/support/report.py?op=put&reportID={{GET[report_id]}}

View file

@ -1,4 +1,4 @@
Expires: Mon, 26 Jul 1997 05:00:00 GMT
Cache-Control: no-store, no-cache, must-revalidate
Pragma: no-cache
Content-Security-Policy: {{GET[csp]}}
Content-Security-Policy: {{GET[csp]}}; report-uri /content-security-policy/support/report.py?op=put&reportID={{GET[report_id]}}

View file

@ -1,3 +1,6 @@
def main(request, response):
response.status = 302
response.headers.set("Location", "post_message_to_frame_owner.html")
if "location" in request.GET:
response.headers.set("Location", request.GET["location"])
else:
response.headers.set("Location", "post_message_to_frame_owner.html")