Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / loader / frame-creation-removal.html
blob832734322aeb29f1737b982ca928ae5cdf02e114
1 <html>
2 <head>
3 <script>
5 if (window.testRunner)
6 testRunner.dumpAsText();
8 function loaded()
10 var theFrame = document.getElementById('lbIframe');
11 if (theFrame)
12 document.body.removeChild(theFrame);
14 var objIframe = document.createElement("iframe");
15 objIframe.setAttribute('id','lbIframe');
16 document.body.appendChild(objIframe);
19 </script>
20 </head>
22 <body onload="loaded();">
23 This is a test for 5823684. If onload handlers aggressively remove and create new iframes in a particular way, we would crash because the frames hadn't been installed into the frame tree correctly before the frame tree was being manipulated.<br>
24 If you do not crash, you have passed this test.<br>
25 <iframe src="resources/frame-creation-removal-iframe.html"></iframe>
26 </body>
27 </html>