Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <p>Passes if it doesn't crash.</p> | |
| 2 <script> | |
| 3 if (window.testRunner) | |
| 4 testRunner.dumpAsText(); | |
| 5 docType = document.implementation.createDocumentType('doc', '-//W3C//DTD XHTML 1 .0 Transitional//EN', 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd'); | |
| 6 doc = document.implementation.createDocument('.', 'doc', docType); | |
|
dglazkov
2014/12/17 16:48:55
Interesting! Why is it significant to have this co
hayato
2014/12/18 05:54:29
Yeah, there is no reason to use XHTML here.
This
| |
| 7 var iframe = doc.createElement('iframe'); | |
| 8 delete docType; | |
| 9 delete doc; | |
| 10 mouseEvent = document.createEvent('MouseEvents'); | |
| 11 mouseEvent.initMouseEvent('click', true, true, window, 0, 0, 0, 0, 0, false, fal se, false, false, 0, null); | |
| 12 iframe.dispatchEvent(mouseEvent); | |
| 13 document.documentElement.appendChild(iframe); | |
| 14 gc(); | |
| 15 mouseEvent.path; | |
| 16 </script> | |
| OLD | NEW |