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 <!--
4 https://bugzilla.mozilla.org/show_bug.cgi?id=705580
5 -->
6 <head>
7 <title>Test for Bug 705580 - General Animated GIF Test 2</title>
8 <script type="application/javascript" src="chrome://mochikit/content/MochiKit/packed.js"></script>
9 <script type="application/javascript" src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script>
10 <script type="application/javascript" src="chrome://mochikit/content/tests/SimpleTest/WindowSnapshot.js"></script>
11 <script type="application/javascript" src="imgutils.js"></script>
12 <script type="application/javascript" src="animationPolling.js"></script>
13 <link rel="stylesheet" type="text/css" href="chrome://mochikit/content/tests/SimpleTest/test.css" />
14 </head>
15 <body>
16 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=705580">
17 Mozilla Bug 705580: Test animated GIFs that are converted to ImageLayers
18 </a>
19 <p id="display"></p>
21 <div id="content">
22 <!--
23 Use an opacity of almost-1 to force a ContainerLayer with opacity, and the img as the sole item in the ThebesLayer. It should then
24 be promoted to an ImageLayer.
25 -->
26 <div id="referenceDiv" style="height: 40px; width: 40px;
27 display: none; background: #2aff00;"></div>
28 <div id="animatedImage" style="opacity: 0.9999;">
29 <img id="animatedGif" src="animated-gif.gif" style="display: none;">
30 <div id="text-descr"></div>
31 </div>
32 <div id="debug" style="display:none">
33 </div>
34 </div>
35 <pre id="test">
36 <script type="text/javascript;version=1.8">
37 const FAILURE_TIMEOUT = 120000; // Fail early after 120 seconds (2 minutes)
39 function main()
40 {
41 var animTest = new AnimationTest(20, FAILURE_TIMEOUT, 'referenceDiv',
42 'animatedGif', 'debug');
43 animTest.beginTest();
44 }
46 window.onload = main;
47 </script>
48 </pre>
49 </body>
50 </html>