OLD | NEW |
(Empty) | |
| 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."); |
| 8 |
| 9 self.jsTestIsAsync = true; |
| 10 if (window.testRunner) { |
| 11 testRunner.dumpAsText(); |
| 12 testRunner.waitUntilDone(); |
| 13 } |
| 14 |
| 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(); |
| 23 } |
| 24 } |
| 25 |
| 26 iframe.addEventListener('readystatechange', moveDivBIntoDivA); |
| 27 moveDivBIntoDivA(); |
| 28 </script> |
| 29 </html> |
OLD | NEW |