Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / replaced / frame-removed-during-resize.html
blobfb20b4954551e02c4b0250ddf1b512fa209cf17f
1 <script>
2 if (window.testRunner)
3 testRunner.dumpAsText();
4 function iframeLoaded()
6 var iframe = document.getElementById("target");
7 iframe.contentWindow.addEventListener("resize", function(event) {
8 iframe.parentNode.removeChild(iframe);
9 }, false);
10 iframe.offsetTop;
11 iframe.style.height = "600px";
13 </script>
14 <p>
15 Test for a crash that could occur when a frame&rsquo;s resize handler removed the frame.
16 </p>
17 <iframe onload="iframeLoaded()" id="target" src="data:text/html,"></iframe>