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 <body onload="f()">
3 <p>
4 <style scoped>
5 p { color: green }
6 </style>
7 First
8 </p>
9 <p>Second</p>
10 <script>
11 function f() {
12 var style = document.getElementsByTagName("style")[0];
13 var p = document.getElementsByTagName("p")[1];
14 p.appendChild(style);
15 }
16 </script>
17 </body>