18 lines
414 B
HTML
18 lines
414 B
HTML
<!doctype html>
|
|
<script>
|
|
onbeforeunload = function() {
|
|
opener.onChildBeforeUnload();
|
|
};
|
|
onload = async function() {
|
|
let ongoingLoad = fetch(location.href);
|
|
location.href = "this-protocol-is-unlikely-to-exist://foo";
|
|
// Load shouldn't be canceled.
|
|
await ongoingLoad;
|
|
setTimeout(function() {
|
|
opener.onChildLoadTimedOut();
|
|
}, 1000);
|
|
};
|
|
onunload = function() {
|
|
opener.onChildUnload();
|
|
};
|
|
</script>
|