layout/forms/crashtests/960277-2.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 <style>
     3 #d { overflow:scroll; width:200px; height:200px; background:yellow; }
     4 #d2 { right:0; width:100px; height:100px; background:purple; }
     5 </style>
     6 <fieldset id="d">
     7   <div id="d2"></div>
     8 </fieldset>
     9 <script>
    10 d.getBoundingClientRect();
    11 d.style.transform = "translateX(100px)";
    12 d.getBoundingClientRect();
    13 d2.style.position = "absolute";
    14 </script>

mercurial