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