Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / navigation / image-load-in-subframe-unload-handler.html
blobc00aa79e373f92761f93d91a0d7c67a61c9cc25f
1 <html>
2 <body>
3 <script>
4 if (window.testRunner) {
5 testRunner.dumpAsText();
6 testRunner.waitUntilDone();
9 function test() {
10 document.getElementsByTagName("body")[0].removeChild(document.getElementById("target"));
13 function finish() {
14 setTimeout(function() {
15 if (window.testRunner)
16 testRunner.notifyDone();
17 }, 300);
19 </script>
20 <iframe id="target" name="target" src="resources/image-load-in-subframe-unload-handler-helper.html"></iframe>
21 This test triggers an unload handler that starts an image load in a different frame (and deletes both frames), but ensures the main frame is not destroyed. We pass if we don't crash.
22 </body>
23 </html>