Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!DOCTYPE html> | |
| 2 <html> | |
| 3 <head> | |
| 4 <script src="../../resources/js-test.js"></script> | |
| 5 <script> | |
| 6 jsTestIsAsync = true; | |
| 7 | |
| 8 function runTest() { | |
| 9 description('Test that document.open() doesn\'t allow frames to be attached du ring frame detach.'); | |
| 10 window[0].document.open(); | |
|
dcheng
2016/02/03 03:13:29
At this point, LoadEventProgress gets reset to Loa
| |
| 11 window[0].document.appendChild(document.createElement('iframe')); | |
|
dcheng
2016/02/03 03:13:29
Right now, our tree looks like this:
[Main frame]
| |
| 12 window[0][0].addEventListener('unload', function() { | |
| 13 window[0].document.documentElement.appendChild(document.createElement('ifram e')); | |
|
dcheng
2016/02/03 03:13:29
Since Child B's load event progress is normal, we
| |
| 14 shouldBe('1', 'window[0].length'); | |
|
dcheng
2016/02/03 03:13:29
If the iframe load is blocked, then window[0].leng
| |
| 15 shouldBeUndefined('window[0][1]'); | |
| 16 finishJSTest(); | |
| 17 }); | |
| 18 window[0].location = 'data:text/plain,Hello world!'; | |
| 19 } | |
| 20 </script> | |
| 21 </head> | |
| 22 <body onload="runTest()"> | |
| 23 <iframe></iframe> | |
| 24 </body> | |
| 25 </html> | |
| OLD | NEW |