OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <head> |
| 4 <script> |
| 5 function runTest() |
| 6 { |
| 7 if (window.testRunner) { |
| 8 testRunner.dumpAsText(); |
| 9 testRunner.dumpChildFramesAsText(); |
| 10 } |
| 11 body = document.getElementById('body'); |
| 12 frame1 = document.getElementById('frame1'); |
| 13 body.removeChild(frame1); |
| 14 |
| 15 // frame3 is added to the frame tree when the parent has the same number of |
| 16 // children as when frame2 was being added. In the past this has led to |
| 17 // frame2 and frame3 having the same unique name - https://crbug.com/576969#
c3 |
| 18 frame3 = document.createElement('iframe'); |
| 19 frame3.id = "frame3"; |
| 20 body.appendChild(frame3); |
| 21 } |
| 22 </script> |
| 23 </head> |
| 24 <body onload="runTest()" id="body"> |
| 25 <iframe id="frame1"></iframe> |
| 26 <iframe id="frame2"></iframe> |
| 27 </body> |
| 28 </html> |
OLD | NEW |