mirror of
https://github.com/servo/servo.git
synced 2025-08-07 14:35:33 +01:00
Update web-platform-tests to revision 14cfa4d648cc1c853b4153268df672d21425f8c1
This commit is contained in:
parent
1b73cf3352
commit
75736751d9
1213 changed files with 19434 additions and 12344 deletions
|
@ -0,0 +1,17 @@
|
|||
<!doctype html>
|
||||
<html>
|
||||
<meta charset="utf-8">
|
||||
<script src="/common/utils.js"></script>
|
||||
<script>
|
||||
const uuid = token();
|
||||
const URL =
|
||||
`../resources/redirect.py?` +
|
||||
`delay=100&` +
|
||||
`location=../resources/stash-put.py?key=${uuid}%26value=on`;
|
||||
|
||||
addEventListener('load', () => {
|
||||
let p = fetch(URL, {keepalive: true});
|
||||
window.parent.postMessage(uuid, '*');
|
||||
});
|
||||
</script>
|
||||
</html>
|
|
@ -1,5 +1,6 @@
|
|||
from urllib import urlencode
|
||||
from urlparse import urlparse
|
||||
import time
|
||||
|
||||
def main(request, response):
|
||||
stashed_data = {'count': 0, 'preflight': "0"}
|
||||
|
@ -48,6 +49,9 @@ def main(request, response):
|
|||
if "redirect_referrerpolicy" in request.GET:
|
||||
headers.append(("Referrer-Policy", request.GET['redirect_referrerpolicy']))
|
||||
|
||||
if "delay" in request.GET:
|
||||
time.sleep(float(request.GET.first("delay", 0)) / 1E3)
|
||||
|
||||
if token:
|
||||
request.server.stash.put(request.GET.first("token"), stashed_data)
|
||||
if "max_count" in request.GET:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue