layout/base/crashtests/399687-1.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 <html>
     2 <head>
     3 <style>
     5 #colset {
     6   width: 300pt;
     7   height: 2in;
     8   -moz-column-count: 3;
     9   -moz-column-gap: 0;
    10 }
    12 .ocontainer {
    13   height: 0;
    14 }
    16 .overflow {
    17   height: 5in;
    18 }
    20 </style>
    22 <script>
    23 function boom()
    24 {
    25   var newDiv = document.createElementNS("http://www.w3.org/1999/xhtml", "div");
    26   var colset = document.getElementById("colset");
    27   colset.insertBefore(newDiv, colset.childNodes[1]);
    28 }
    29 </script>
    31 </head>
    33 <body onload="boom();">
    35 <div id="colset"><div class="ocontainer"><div class="overflow"></div></div>    </div>
    37 </body>
    38 </html>

mercurial