4 <script src=
"../../resources/js-test.js"></script>
6 description("Indirectly detaching frames on load completion should not crash.");
8 window
.jsTestIsAsync
= true;
12 window
.secondFrame
.contentWindow
.onunload = function() {
13 document
.documentElement
.removeChild(window
.bodyEl
);
14 setTimeout(finishJSTest
, 10);
16 window
.firstFrame
.src
= 'about:blank';
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
;