4 <script src=
"/js-test-resources/js-test.js"></script>
5 <script type=
"text/javascript">
6 var str
= "<script type='text/javascript' src='http://127.0.0.1:8000/misc/resources/hang-connection.php'><" + "/script>";
10 document
.getElementById("ad").src
= "javascript: window.parent.str";
16 if (window
.testRunner
)
17 testRunner
.notifyDone();
22 document
.getElementById("ad").src
= "javascript: '<!DOCTYPE html><script>window.parent.finish();<" + "/script>'";
25 if (window
.testRunner
) {
26 testRunner
.waitUntilDone();
27 testRunner
.dumpAsText();
30 setTimeout("loadFirst();", 0);
31 setTimeout("loadSecond();", 0);
35 <p>This test checks whether loading a JavaScript URL cancels loaders. If it fails, it will give an assertion failure in Debug builds.
</p>
36 <iframe id=
"ad"></iframe>