layout/base/crashtests/337268-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>
     5 window.addEventListener("load", foo1, false);
     7 function foo1()
     8 {
     9   document.getElementById("a").style.width = "20em";
    10   setTimeout(foo2, 30);
    11 }
    13 function foo2()
    14 {
    15   document.getElementById("b").style.width = "auto";
    16   document.documentElement.removeAttribute("class");
    17 }
    19 </script>
    20 </head>
    22 <body>
    24 <table>
    25 <tr>
    26 <td id="a">
    28 <table style="display: -moz-inline-box;">
    29 <tr>
    30 <td width="100%">
    32 XXX XXX
    34 <div id="b" style="width: 200%; display: table-column-group;"></div>
    36 </td>
    37 </tr>
    38 </table>
    40 </td>
    41 </tr>
    42 </table>
    44 </body>
    45 </html>

mercurial