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 | <!-- |
michael@0 | 4 | https://bugzilla.mozilla.org/show_bug.cgi?id=767779 |
michael@0 | 5 | --> |
michael@0 | 6 | <head> |
michael@0 | 7 | <title>Test for Bug 767779</title> |
michael@0 | 8 | <script type="application/javascript" src="/MochiKit/MochiKit.js"></script> |
michael@0 | 9 | <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script> |
michael@0 | 10 | <script type="application/javascript" src="/tests/SimpleTest/WindowSnapshot.js"></script> |
michael@0 | 11 | <script type="application/javascript" src="imgutils.js"></script> |
michael@0 | 12 | <script type="application/javascript" src="animationPolling.js"></script> |
michael@0 | 13 | <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/> |
michael@0 | 14 | </head> |
michael@0 | 15 | <body> |
michael@0 | 16 | <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=767779">Mozilla Bug 767779</a> |
michael@0 | 17 | <p id="display"></p> |
michael@0 | 18 | <pre id="test"> |
michael@0 | 19 | <script type="application/javascript"> |
michael@0 | 20 | const FAILURE_TIMEOUT = 30000; // Fail early after 30 seconds |
michael@0 | 21 | |
michael@0 | 22 | function main() |
michael@0 | 23 | { |
michael@0 | 24 | // referenceDiv's size and color correspond to the last frame of the GIF |
michael@0 | 25 | var animTest = new AnimationTest(20, FAILURE_TIMEOUT, 'referenceDiv', |
michael@0 | 26 | 'animatedGif', 'debug'); |
michael@0 | 27 | animTest.beginTest(); |
michael@0 | 28 | } |
michael@0 | 29 | |
michael@0 | 30 | window.onload = main; |
michael@0 | 31 | </script> |
michael@0 | 32 | </pre> |
michael@0 | 33 | <div id="content"> <!-- style="display: none" --> |
michael@0 | 34 | <div id="referenceDiv" style="height: 40px; width: 40px; |
michael@0 | 35 | display: none; background: #18ff00;"></div> |
michael@0 | 36 | <div id="animatedImage"> |
michael@0 | 37 | <img id="animatedGif" src="bug767779.sjs" style="display: none;"/> |
michael@0 | 38 | <div id="text-descr"></div> |
michael@0 | 39 | </div> |
michael@0 | 40 | <div id="debug" style="display:none"> |
michael@0 | 41 | </div> |
michael@0 | 42 | </div> |
michael@0 | 43 | </body> |
michael@0 | 44 | </html> |