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 <svg xmlns="http://www.w3.org/2000/svg"
2 xmlns:xlink="http://www.w3.org/1999/xlink"
3 class="reftest-wait" font-size="80">
5 <script type="application/javascript">
6 document.addEventListener("MozReftestInvalidate", doTest, false);
8 function doTest() {
9 document.getElementById('blue').setAttribute('stop-color', '#0000dd');
10 document.documentElement.removeAttribute('class');
11 }
13 </script>
15 <!-- Tests that gradients are live to stop color changes. -->
17 <linearGradient id="grad1" gradientUnits="objectBoundingBox" x1="0" y1="0" x2="1" y2="0">
18 <stop id="green" stop-color="#00dd00" offset="0"/>
19 <stop id="blue" stop-color="red" offset="0.5"/>
20 <stop id="magenta" stop-color="magenta" offset="1"/>
21 </linearGradient>
22 <rect x="20" y="20" width="440" height="80" fill="url(#grad1)" />
24 <linearGradient id="grad2" xlink:href="#grad1"/>
25 <rect x="20" y="150" width="440" height="80" fill="url(#grad2)" />
26 <text x="20" y="300" width="440" height="80" fill="url(#grad1)">gradiation</text>
27 <text x="20" y="400" width="440" height="80" fill="url(#grad2)">gradiation</text>
29 </svg>