WebCore:
[WebKit-https.git] / LayoutTests / fast / xmlhttprequest / xmlhttprequest-open-after-iframe-onload-remove-self.html
1 <html>
2 <script>
3 if (window.layoutTestController) {
4   layoutTestController.dumpAsText();
5   layoutTestController.waitUntilDone();
6 }
7   
8 function onFrameLoad(frame) {
9   var client = frame.contentWindow.client();
10   frame.parentNode.removeChild(frame);
11   client.open("GET", "DoesNotExist.txt");
12   if (window.layoutTestController)
13     layoutTestController.notifyDone();
14 }
15 </script>
16 <body>
17 This tests that removing a child frame in XMLHttpRequest does not crash the renderer.
18 <br>
19 <iframe src="resources/xmlhttprequest-open-after-iframe-onload-remove-self-child.html" onload="onFrameLoad(this)"></iframe>
20 </body>
21 </html>