Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 <html> | 1 <html> |
| 2 <body> | 2 <body> |
| 3 <script> | 3 <script> |
| 4 function runTest() { | 4 function runTest() { |
| 5 var test = document.getElementById('root').contentDocument; | 5 var test = document.getElementById('root').contentDocument; |
| 6 test.firstChild.setAttribute('onunload', "parent.clearUs();"); | 6 test.firstChild.setAttribute('onunload', "parent.clearUs();"); |
| 7 location.reload(); | 7 location.reload(); |
| 8 } | 8 } |
| 9 | 9 |
| 10 function clearUs() { | 10 function clearUs() { |
| 11 document.write(); | 11 document.write(); |
| 12 parent.done(); | 12 parent.done(); |
| 13 } | 13 } |
| 14 </script> | 14 </script> |
| 15 <object data="does_not_exist"></object> | 15 <object data="does_not_exist"></object> |
| 16 <object data="document-destruction-within-unload.svg" id="root" onload="runTest( );"></object> | 16 <object data="document-destruction-within-unload.svg" id="root" onload="runTest( );"></object> |
| 17 </body> | 17 </body> |
| 18 </html> | 18 </html> |
| OLD | NEW |