layout/reftests/table-dom/deleteColGroup2.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   var table = document.getElementsByTagName("TABLE")[0];
     8   var colgroup = document.getElementsByTagName("COLGROUP")[1];
     9   table.removeChild(colgroup);
    10 }
    11 </SCRIPT>  
    12 </HEAD>
    13 <BODY onload="doIt()">
    14 <table bgcolor=orange border>
    15  <colgroup span=2 width=100></colgroup>
    16  <colgroup span=2 width=200></colgroup>
    17  <tr>
    18   <td>100</td><td>100</td><td>auto</td><td>auto</td>
    19  </tr>
    20 </table>
    21 </BODY></HTML>

mercurial