content/base/crashtests/344882-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 class="reftest-wait">
     2 <head>
     3 <script>
     4 var obj;
     6 function boo()
     7 {
     8   obj = document.getElementById("obj");
     9   setScriptSrc();
    10 }
    12 function setScriptSrc()
    13 {
    14   obj.data = "javascript:setScriptSrc2();";
    15 }
    17 function setScriptSrc2() 
    18 {
    19   obj.data = "javascript:void 0";
    21   document.documentElement.removeAttribute("class");
    22 }
    24 </script>
    25 </head>
    27 <body onload="setTimeout(boo, 30);">
    29 <object data="../../../testing/crashtest/images/tree.gif" id="obj">
    31 </body>
    33 </html>

mercurial