content/base/crashtests/816253.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>
     5             window.onload = function() {
     6                 setInterval(
     7                     function next_step() {
     8                         var style = document.createElement('style');
     9                         style.innerHTML = "{ }";
    10                         document.getElementsByTagName("*")[ 7 ].appendChild(style);
    11                         window.dump('.');
    12                     }, 10);
    13             }
    14         </script>
    15     </head>
    16     <body>
    17         <div id="console"></div>
    18         <div id="parentDiv">
    19             <div id="left-to-right" dir="auto" class="testElement">
    20                 <input type="text" value="מקור השם עברית">Test test test
    21             </div>
    22         </div>
    23         <script id="des">
    24             var el = document.getElementById("left-to-right");
    25             document.defaultView.getComputedStyle(el, null).getPropertyValue('border-right-color');
    27             document.getElementById("parentDiv").style.display = "none";
    28         </script>
    30     </body>
    31 </html>

mercurial