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 class="reftest-wait"> |
michael@0 | 3 | <head> |
michael@0 | 4 | <title>Test for bug 641198</title> |
michael@0 | 5 | <link rel="stylesheet" href="ImageDocument.css"> |
michael@0 | 6 | <style type="text/css" media=screen> |
michael@0 | 7 | a.animated1 { |
michael@0 | 8 | display: block; |
michael@0 | 9 | width: 40px; |
michael@0 | 10 | height: 40px; |
michael@0 | 11 | background: url("animation1a.gif") no-repeat 0 0; |
michael@0 | 12 | } |
michael@0 | 13 | |
michael@0 | 14 | a.animated1 span { |
michael@0 | 15 | position: absolute; |
michael@0 | 16 | top: -999em; |
michael@0 | 17 | } |
michael@0 | 18 | |
michael@0 | 19 | a.animated2 { |
michael@0 | 20 | display: block; |
michael@0 | 21 | width: 40px; |
michael@0 | 22 | height: 40px; |
michael@0 | 23 | background: url("animation2a.gif") no-repeat 0 0; |
michael@0 | 24 | } |
michael@0 | 25 | |
michael@0 | 26 | a.animated2 span { |
michael@0 | 27 | position: absolute; |
michael@0 | 28 | top: -999em; |
michael@0 | 29 | } |
michael@0 | 30 | </style> |
michael@0 | 31 | </head> |
michael@0 | 32 | <body onload="doTimeout()"> |
michael@0 | 33 | |
michael@0 | 34 | <a id="animated" href="#" title="Animated"><span>Animated</span></a> |
michael@0 | 35 | |
michael@0 | 36 | <script> |
michael@0 | 37 | // We check whether changing the class will lead to the animation being |
michael@0 | 38 | // run from the beginning, even if the animation was already shown |
michael@0 | 39 | // before. |
michael@0 | 40 | var counter = 0; |
michael@0 | 41 | function doTimeout() { |
michael@0 | 42 | if (counter == 4) { |
michael@0 | 43 | document.documentElement.className = ''; |
michael@0 | 44 | } else { |
michael@0 | 45 | document.getElementById("animated").setAttribute("class", "animated" + ((counter % 2)+1)); |
michael@0 | 46 | setTimeout(doTimeout, counter == 3 ? 500 : 250); // Wait a bit more for the last one, to prevent oranges |
michael@0 | 47 | } |
michael@0 | 48 | counter++; |
michael@0 | 49 | } |
michael@0 | 50 | </script> |
michael@0 | 51 | </body> |
michael@0 | 52 | </html> |
michael@0 | 53 |