Tue, 06 Jan 2015 21:39:09 +0100
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 type="text/css">
5 #inline-block {
6 display: inline-block;
7 margin: 10px 0;
8 background-color: green;
9 }
10 #block {
11 margin: 10px 0;
12 background-color: lightgreen;
13 }
14 </style>
15 <script type="text/javascript">
16 function test() {
17 document.getElementById('block').style.display = 'block';
18 document.documentElement.removeAttribute('class');
19 }
20 document.addEventListener('MozReftestInvalidate', test, false);
21 </script>
22 </head>
23 <body>
24 <div id="inline-block"><span id="block">Hello Kitty</span></div>
25 </body>
26 </html>