mirror of
https://github.com/servo/servo.git
synced 2025-09-08 05:58:20 +01:00
Update web-platform-tests to revision 81962ac8802223d038b188b6f9cb88a0a9c5beee
This commit is contained in:
parent
fe1a057bd1
commit
24183668c4
1960 changed files with 29853 additions and 10555 deletions
|
@ -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>
|
|
@ -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]}}
|
|
@ -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>
|
||||
|
|
|
@ -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]}}
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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]}}
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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]}}
|
||||
|
|
|
@ -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]}}
|
||||
|
|
|
@ -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")
|
Loading…
Add table
Add a link
Reference in a new issue