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 <html>
3 <head>
4 <meta charset="utf-8">
5 <script type="text/javascript">
6 // generate an enormous random number...
7 var r = Math.floor(Math.random() * Math.pow(2, 62)).toString();
9 // ... and use it to set a randomly named cookie
10 document.cookie = r + "=value; path=/ohai";
11 </script>
12 <body>
13 </body>
14 </html>