layout/tables/crashtests/308752-2-inner.html

Wed, 31 Dec 2014 13:27:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 13:27:57 +0100
branch
TOR_BUG_3246
changeset 6
8bccb770b82d
permissions
-rw-r--r--

Ignore runtime configuration files generated during quality assurance.

michael@0 1 <html>
michael@0 2 <head>
michael@0 3 <script>
michael@0 4 function init2() {
michael@0 5 var one = document.getElementById('one');
michael@0 6 var four = document.getElementById('two');
michael@0 7 document.getElementsByTagName('table')[0].appendChild(one);
michael@0 8 setTimeout('clickit()', 0);
michael@0 9 }
michael@0 10
michael@0 11 function doe(){
michael@0 12 two.parentNode.removeChild(two);
michael@0 13 }
michael@0 14 function clickit()
michael@0 15 {
michael@0 16 var evt = document.createEvent("MouseEvents");
michael@0 17 evt.initMouseEvent("click", true, true, window, 0, 0, 0, 0, 0, false, false, false, false, 0, null);
michael@0 18 document.body.dispatchEvent(evt);
michael@0 19 }
michael@0 20 window.addEventListener("load", init2, 0);
michael@0 21 window.addEventListener("click", doe, 0);
michael@0 22 </script>
michael@0 23 </head>
michael@0 24 <body>
michael@0 25 <table style="border-collapse: collapse;">
michael@0 26 <tbody>
michael@0 27 <tr><td rowspan="2">r11</td></tr>
michael@0 28 <tr id="one"><td id="two">r21</td></tr>
michael@0 29 <tr></tr>
michael@0 30 </tbody>
michael@0 31 </table>
michael@0 32 Mozilla should not crash when clicking in the document
michael@0 33 </body>
michael@0 34 </html>
michael@0 35

mercurial