blob: e672e19a28e0dcfcab3a2d5b15d4d881305438d4 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<script src="../../../resources/js-test-pre.js"></script>
</head>
<body onload="debug('load');finishJSTest();">
Checks that async scripts fire onbeforeload immediately and that it is cancellable.
<div id="console"></div>
<script>var jsTestIsAsync = true;</script>
<script src="resources/shouldnotexecute.js" onbeforeload="debug('cancelled onbeforeload async'); return false;" async></script>
<script src="resources/async.js" onbeforeload="debug('onbeforeload async'); return true;" async></script>
<script src="data:text/javascript," onbeforeload="debug('onbeforeload external'); return true;"></script>
<script src="../../../resources/js-test-post.js"></script>
</body>
</html>