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 #separator {
6 height: 20px;
7 background-color: green;
8 }
9 #parent {
10 background-color: green;
11 margin-top: 10px;
12 }
13 #first-child {
14 margin-top: 20px;
15 }
16 #last-child {
17 height: 20px;
18 margin-top: 15px;
19 }
20 </style>
21 <script type="text/javascript">
22 function test() {
23 document.getElementById('first-child').style.marginBottom = '30px';
24 document.documentElement.removeAttribute('class');
25 }
26 document.addEventListener('MozReftestInvalidate', test, false);
27 </script>
28 </head>
29 <body>
30 <div id="separator"></div>
31 <div id="parent">
32 <div id="first-child"></div>
33 <div id="last-child"></div>
34 </div>
35 </body>
36 </html>