1<!DOCTYPE html>
2<html>
3<head>
4 <title>Test for Bug 33533: window.onload never fires if page contains an <iframe> with a bad scheme or whose load is cancelled by returning null from resource load delegate's willSendRequest</title>
5 <script>
6 if (window.testRunner) {
7 testRunner.dumpAsText();
8 testRunner.setCustomPolicyDelegate(true);
9 if (testRunner.setShouldDecideNavigationPolicyAfterDelay)
10 testRunner.setShouldDecideNavigationPolicyAfterDelay(true);
11 }
12
13 window.onload = function() {
14 var result = document.getElementById("result");
15 if (!window.testRunner) {
16 result.innerText = "This test can only be run in DumpRenderTree.";
17 return;
18 }
19 result.innerText = "PASSED";
20 };
21 </script>
22</head>
23<body>
24 <p>Test for <a href="http://webkit.org/b/33533">window.onload never fires if page contains an
25 <iframe> with a bad scheme or whose load is cancelled by returning null from resource load
26 delegate's willSendRequest</a>. If the test passes, you should see the word "PASSED" below.</p>
27 <div id=result>FAILED</div>
28 <iframe src="http://www.example.com/"></iframe>
29</body>
30</html>