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.com" /> |
michael@0 | 5 | </head> |
michael@0 | 6 | <body onload="load();"> |
michael@0 | 7 | Page 2 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 | html = document.createElement("html"); |
michael@0 | 14 | html.innerHTML = "<body><a href='/' id='link'>B</a></body>" |
michael@0 | 15 | document.appendChild(html); |
michael@0 | 16 | |
michael@0 | 17 | // Tell our parent to have a look at us |
michael@0 | 18 | parent.gGen.next(); |
michael@0 | 19 | } |
michael@0 | 20 | </script> |
michael@0 | 21 | |
michael@0 | 22 | </body> |
michael@0 | 23 | </html> |