servo/tests/wpt/web-platform-tests/fetch/api/resources/keepalive-iframe.html

17 lines
385 B
HTML

<!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>