content/base/crashtests/628599-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 <!DOCTYPE html>
     2 <html>
     3 <head>
     4 <script>
     6 var w;
     8 function b1()
     9 {
    10   w = window.open("404.gif", "w2", "f");
    11   setTimeout(b2, 1200);
    12 }
    14 function b2()
    15 {
    16   w.close();
    17   setTimeout(b3, 500);
    18 }
    20 function b3()
    21 {
    22   w.location = "data:text/html,2";
    23   document.body.appendChild(document.createTextNode("Done"));
    24 }
    26 </script>
    27 </head>
    28 <body>
    29 <div><button onclick="b1();">Start test</button></div>
    30 </body>
    31 </html>

mercurial