layout/tables/crashtests/308752-1-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 two = document.getElementById('two');
michael@0 7 var three = document.getElementById('three');
michael@0 8 var four = document.getElementById('four');
michael@0 9
michael@0 10 four.appendChild(two);
michael@0 11 document.getElementsByTagName('tbody')[0].appendChild(three);
michael@0 12 four.appendChild(three);
michael@0 13 one.appendChild(four);
michael@0 14 document.getElementsByTagName('table')[0].appendChild(one);
michael@0 15 setTimeout('clickit()', 0);
michael@0 16 }
michael@0 17
michael@0 18 function doe(){
michael@0 19 four.parentNode.removeChild(four);
michael@0 20 }
michael@0 21
michael@0 22 function clickit()
michael@0 23 {
michael@0 24 var evt = document.createEvent("MouseEvents");
michael@0 25 evt.initMouseEvent("click", true, true, window, 0, 0, 0, 0, 0, false, false, false, false, 0, null);
michael@0 26 document.body.dispatchEvent(evt);
michael@0 27 }
michael@0 28
michael@0 29 window.addEventListener("load", init2, 0);
michael@0 30 window.addEventListener("click", doe, 0);
michael@0 31 </script>
michael@0 32 </head>
michael@0 33 <body>
michael@0 34 <table style="border-collapse: collapse;"><tbody>
michael@0 35 <tr> <td rowspan="5">P</td> <td id="three">6</td> <td>O</td> </tr>
michael@0 36 <tr> <td id="four">5</td> <td>P</td> </tr>
michael@0 37 <tr id="five"> <td>5</td> <td>U</td> </tr>
michael@0 38 <tr id="one"> <td>6</td> <td>S</td> </tr>
michael@0 39 <tr id="two"> <td>S</td> <td>9</td> </tr>
michael@0 40 </tbody></table>
michael@0 41 Mozilla should not crash when clicking in the document
michael@0 42 </body></html>
michael@0 43

mercurial