layout/reftests/transform/dynamic-addremove-1c.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 class="reftest-wait">
     3 <body style="margin:0;">
     4 <div id="t" style="width:100px; height:100px; background:yellow;">
     5   <div style="float:left;">
     6     <div style="position:fixed; left:50px; top:50px; width:100px; height:100px; background:orange;"></div>
     7   </div>
     8 </div>
     9 <script>
    10 function doTest() {
    11   document.getElementById("t").style.transform = "translate(80px,20px)";
    12   document.documentElement.removeAttribute("class");
    13 }
    14 window.addEventListener("MozReftestInvalidate", doTest, false);
    15 </script>
    16 </body>
    17 </html>

mercurial