layout/forms/crashtests/639733.xhtml

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 xmlns="http://www.w3.org/1999/xhtml">
     2 <head>
     3 <script>
     4 <![CDATA[
     6 function remove(n)
     7 {
     8   n.parentNode.removeChild(n);
     9 }
    11 function boom()
    12 {
    14   document.documentElement.offsetHeight;
    15   remove(document.getElementById("s"));
    16   remove(document.getElementById("e"));
    17   document.documentElement.offsetHeight;
    18 }
    20 ]]>
    21 </script>
    22 </head>
    23 <body onload="boom();">
    24 <embed id="e" src="data:text/html,A"></embed><span id="s"><div></div></span><isindex/>
    25 </body>
    26 </html>

mercurial