| OLD | NEW |
| (Empty) |
| 1 <!DOCTYPE html> | |
| 2 <script> | |
| 3 if (window.testRunner) | |
| 4 testRunner.waitUntilDone(); | |
| 5 | |
| 6 function start() { | |
| 7 div = document.createElement('div'); | |
| 8 marquee = document.createElement('marquee'); | |
| 9 div.appendChild(marquee); | |
| 10 doc = document.documentElement; | |
| 11 iframe = document.createElement('iframe'); | |
| 12 iframe.src='resources/marquee-destroyed-without-removed-from-crash.svg'; | |
| 13 doc.appendChild(top.iframe); | |
| 14 | |
| 15 if (location.hash == '#done') { | |
| 16 document.write('PASS'); | |
| 17 if (window.testRunner) { | |
| 18 testRunner.dumpAsText(); | |
| 19 testRunner.notifyDone(); | |
| 20 } | |
| 21 return; | |
| 22 } | |
| 23 setTimeout('top.reload_page()', 25); | |
| 24 } | |
| 25 | |
| 26 function reload_page() { | |
| 27 document.removeChild(doc); | |
| 28 document.appendChild(doc); | |
| 29 | |
| 30 var count = 0; | |
| 31 if (location.hash !== "") | |
| 32 count = parseInt(location.hash.substr(1)); | |
| 33 if (count < 5) { | |
| 34 ++count; | |
| 35 location.hash = '#' + count; | |
| 36 } else { | |
| 37 location.hash = 'done'; | |
| 38 } | |
| 39 setTimeout("gc(); location.reload();", 10); | |
| 40 } | |
| 41 </script> | |
| 42 <body onload="start()"> | |
| 43 crbug.com/447976: crash when marquee element is destroyed without removedFrom. | |
| OLD | NEW |