Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / frames / detach-frame-nested-on-commit-no-crash.html
blobac88ef0f6a1d17d792e01a914186a481329cbfb5
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../../resources/js-test.js"></script>
5 <script>
6 description("Indirectly detaching frames on load completion should not crash.");
8 window.jsTestIsAsync = true;
10 function maybeStart()
12 window.secondFrame.contentWindow.onunload = function() {
13 document.documentElement.removeChild(window.bodyEl);
14 setTimeout(finishJSTest, 10);
16 window.firstFrame.src = 'about:blank';
18 function runTest()
20 window.firstFrame = document.createElement('iframe');
21 document.body.appendChild(window.firstFrame);
22 window.secondFrame = document.createElement('iframe');
23 window.secondFrame.src = 'javascript:window.top.maybeStart();';
24 window.firstFrame.contentDocument.documentElement.appendChild(window.secondFrame);
27 window.onload = runTest;
28 </script>
29 </head>
30 <body id=bodyEl>
31 </html>