layout/reftests/table-dom/deleteTbodyRebuild1.html

Tue, 06 Jan 2015 21:39:09 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Tue, 06 Jan 2015 21:39:09 +0100
branch
TOR_BUG_9701
changeset 8
97036ab72558
permissions
-rw-r--r--

Conditionally force memory storage according to privacy.thirdparty.isolate;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.

     1 <HEAD>
     2 <SCRIPT src=tableDom.js>
     3 </SCRIPT>
     4 <SCRIPT>
     6 function doIt() {
     7   deleteTbodyAt(0, 0);
     8 }
     9 </SCRIPT>  
    10 </HEAD>
    11 <BODY onload="doIt()">
    12 <table bgcolor=orange border>
    13  <tbody>
    14   <tr>
    15    <td>c11</td><td>c12</td>
    16   </tr>
    17   <tr>
    18    <td rowspan=2>c21</td><td>c22</td>
    19   </tr>
    20  </tbody>
    21  <tbody>
    22   <tr>
    23    <td>c31</td><td>c32</td>
    24   </tr>
    25   <tr>
    26    <td>c41</td><td>c42</td>
    27   </tr>
    28  </tbody>
    29 </table>
    30 </BODY></HTML>

mercurial