Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / frames / onload-remove-iframe-crash.html
blobbe79919fb26b9b677c0a6bb533e988872ad25b52
1 <p>This test checks for a crash that once happened in WebKit. The crash was caused
2 by an onload handler for a synchronously loaded iframe removing the iframe from the
3 document.
4 </p>
5 <p>(For compatibility, WebKit loads about:blank and javascript: URLs synchronously).
6 </p>
7 <hr>
8 <p>PASS: You didn't crash.
9 </p>
11 <div id="div"></div>
13 <script>
14 if (window.testRunner)
15 testRunner.dumpAsText();
17 document.getElementById('div').innerHTML = '<iframe src="about:blank" onload="this.parentNode.removeChild(this)"></iframe>';
18 </script>