Thu, 15 Jan 2015 15:59:08 +0100
Implement a real Private Browsing Mode condition by changing the API/ABI;
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>