Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / frames / detach-frame-from-child-detach-no-crash.html
blob98f8b3243cc00231fe5a36b1c773a6c8ded9581e
1 <!DOCTYPE html>
2 <html>
3 <script src="../../resources/js-test.js"></script>
4 <div id="a"></div>
5 <div id="b"><iframe id="f"></iframe></div>
6 <script>
7 description("Allow nested frame detaches from subframe without crashing.");
9 self.jsTestIsAsync = true;
10 if (window.testRunner) {
11 testRunner.dumpAsText();
12 testRunner.waitUntilDone();
15 var iframe = f.contentDocument;
16 iframe.open();
17 function moveDivBIntoDivA() {
18 try {
19 a.appendChild(b);
20 iframe.open();
21 } catch(e) {
22 finishJSTest();
26 iframe.addEventListener('readystatechange', moveDivBIntoDivA);
27 moveDivBIntoDivA();
28 </script>
29 </html>