file_location_href_unknown_protocol.html (414B)
1 <!doctype html> 2 <script> 3 onbeforeunload = function() { 4 opener.onChildBeforeUnload(); 5 }; 6 onload = async function() { 7 let ongoingLoad = fetch(location.href); 8 location.href = "this-protocol-is-unlikely-to-exist://foo"; 9 // Load shouldn't be canceled. 10 await ongoingLoad; 11 setTimeout(function() { 12 opener.onChildLoadTimedOut(); 13 }, 1000); 14 }; 15 onunload = function() { 16 opener.onChildUnload(); 17 }; 18 </script>