layout/xul/crashtests/470272.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>
     2 <head>
     3 <script>
     4 function doe2(i) {
     5 document.documentElement.offsetHeight;
     6 document.getElementById('a').setAttribute('style', 'display: -moz-inline-box;');
     7 document.documentElement.offsetHeight;
     8 }
     9 </script>
    10 </head>
    11 <body style="float: right; -moz-column-count: 2; height: 20%;" onload="setTimeout(doe2,0);">
    12   <div style="display: none;"></div>
    13   <ul style="display: -moz-inline-box;"></ul>
    14   <span id="a">
    15     <ul style="display: -moz-grid; overflow: scroll;"></ul>
    16       <span style="display: -moz-inline-box; height: 10px;">
    17         <span style="position: absolute;"></span>
    18       </span>
    19   </span>
    20 </body>
    21 </html>

mercurial