tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

284852.html (2740B)


      1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
      2 <html><head>
      3    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
      4    <title>Testcase for bug 284852</title>
      5    <style type="text/css">
      6 
      7        table {
      8    border-collapse: collapse;
      9           border:3px dashed blue;
     10        }
     11 td {
     12   border:3px dotted black;
     13        }
     14    </style>
     15 <script>
     16  function insertCell(id,rowspan) {
     17    var tr = document.getElementById(id);
     18    var td = document.createElement('td');
     19    td.setAttribute('rowspan',rowspan);
     20    tr.insertBefore(td,tr.firstChild)
     21  }
     22 </script>
     23 </head>
     24 <body>
     25 
     26 <table>
     27 <tbody>
     28  <tr><td>g1row1</td></tr>
     29  <tr><td>g1row2</td></tr>
     30  <tr><td>g1row3</td></tr>
     31 </tbody>
     32 <tbody>
     33  <tr><td>g2row1</td></tr>
     34  <tr><td>g2row2</td></tr>
     35  <tr><td>g2row3</td></tr>
     36  <tr id="r1"><td rowspan="0">g2row4</td></tr>
     37 </tbody>
     38 </table>
     39 
     40 <script>
     41 insertCell('r1','0');
     42 insertCell('r1','0');
     43 insertCell('r1','0');
     44 insertCell('r1','0');
     45 insertCell('r1','0');
     46 insertCell('r1','0');
     47 insertCell('r1','0');
     48 insertCell('r1','0');
     49 insertCell('r1','0');
     50 insertCell('r1','0');
     51 </script>
     52 
     53 <button onclick="insertCell('r1','0')">insert cell</button>
     54 <pre>
     55 Clicking the button above five times or more gives:
     56 
     57 ###!!! ASSERTION: invalid BC damage area: 'PR_FALSE', file nsTableFrame.cpp, line 4567
     58 </pre>
     59 
     60 <table>
     61 <tbody>
     62  <tr><td>g1row1</td></tr>
     63  <tr><td>g1row2</td></tr>
     64  <tr><td>g1row3</td></tr>
     65 </tbody>
     66 <tbody>
     67  <tr><td>g2row1</td></tr>
     68  <tr><td>g2row2</td></tr>
     69  <tr><td>g2row3</td></tr>
     70  <tr id="r2"><td rowspan="2">g2row4</td></tr>
     71 </tbody>
     72 </table>
     73 
     74 <script>
     75 insertCell('r2','2');
     76 insertCell('r2','2');
     77 insertCell('r2','2');
     78 insertCell('r2','2');
     79 insertCell('r2','2');
     80 insertCell('r2','2');
     81 insertCell('r2','2');
     82 insertCell('r2','2');
     83 insertCell('r2','2');
     84 insertCell('r2','2');
     85 </script>
     86 <button onclick="insertCell('r2','2')">insert cell</button>
     87 <pre>
     88 Clicking the button gives:
     89 
     90 ###!!! ASSERTION: invalid BC damage area: 'PR_FALSE', file nsTableFrame.cpp, line 4567
     91 </pre>
     92 
     93 <table>
     94 <tbody>
     95  <tr><td>g1row1</td></tr>
     96  <tr><td>g1row2</td></tr>
     97  <tr><td>g1row3</td></tr>
     98 </tbody>
     99 <tbody>
    100  <tr><td>g2row1</td></tr>
    101  <tr><td>g2row2</td></tr>
    102  <tr><td>g2row3</td></tr>
    103  <tr id="r3"></tr>
    104 </tbody>
    105 </table>
    106 
    107 <script>
    108 insertCell('r3','0');
    109 insertCell('r3','0');
    110 insertCell('r3','0');
    111 insertCell('r3','0');
    112 insertCell('r3','0');
    113 insertCell('r3','0');
    114 insertCell('r3','0');
    115 insertCell('r3','0');
    116 insertCell('r3','0');
    117 insertCell('r3','0');
    118 </script>
    119 
    120 <button onclick="insertCell('r3','0')">insert cell</button>
    121 <pre>
    122 Clicking the button the first time gives:
    123 
    124 ###!!! ASSERTION: invalid BC damage area: 'PR_FALSE', file nsTableFrame.cpp, line 4567
    125 </pre>
    126 
    127 
    128 
    129 </body>
    130 </html>