1
0
Fork 0
firefox/dom/base/test/file_location_href_unknown_protocol.html
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

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>