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.
michael@0 | 1 | <!DOCTYPE HTML> |
michael@0 | 2 | <html> |
michael@0 | 3 | <head> |
michael@0 | 4 | <base href="http://example.org" /> |
michael@0 | 5 | </head> |
michael@0 | 6 | <body onload="load();"> |
michael@0 | 7 | Initial state |
michael@0 | 8 | |
michael@0 | 9 | <script> |
michael@0 | 10 | function load() { |
michael@0 | 11 | // Nuke and rebuild the page. |
michael@0 | 12 | document.removeChild(document.documentElement); |
michael@0 | 13 | var html = document.createElement("html"); |
michael@0 | 14 | var body = document.createElement("body"); |
michael@0 | 15 | html.appendChild(body); |
michael@0 | 16 | var link = document.createElement("a"); |
michael@0 | 17 | link.href = "#"; |
michael@0 | 18 | link.id = "link"; |
michael@0 | 19 | body.appendChild(link); |
michael@0 | 20 | document.appendChild(html); |
michael@0 | 21 | |
michael@0 | 22 | // Tell our parent to have a look at us. |
michael@0 | 23 | parent.gGen.next(); |
michael@0 | 24 | } |
michael@0 | 25 | </script> |
michael@0 | 26 | |
michael@0 | 27 | </body> |
michael@0 | 28 | </html> |