layout/base/crashtests/830192-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 <!DOCTYPE HTML>
     2 <html class="reftest-wait">
     3 <head>
     4 <style>
     5 .test {
     6   position:fixed;
     7   display:none;
     8   width:100px; height:100px;
     9   background:yellow;
    10 }
    11 .doTest .test {
    12   display:block;
    13 }
    14 </style>
    15 </head>
    16 <body>
    17 <table>
    18 <tr style="transform:translate(10px,0)">
    19 <td>
    20   <div class="test"></div>
    21 </td>
    22 </tr>
    23 </table>
    24 <script>
    25 function doTest() {
    26   document.documentElement.setAttribute("class", "doTest");
    27 }
    28 window.addEventListener("MozReftestInvalidate", doTest, false);
    29 </script>
    30 </body>
    31 </html>

mercurial