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 <!--
2 Any copyright is dedicated to the Public Domain.
3 http://creativecommons.org/licenses/publicdomain/
5 Test that document.mozSetImageElement() after an image load causes a repaint.
6 -->
7 <!DOCTYPE html>
8 <html class="reftest-wait">
9 <body style="background: -moz-element(#e) red">
11 <script>
13 window.addEventListener("MozReftestInvalidate", function () {
14 var img = new Image();
15 img.src = "data:image/gif;base64,R0lGODlhAQABAID/AP///wAAACwAAAAAAQABAAACAkQBADs="; /* 1x1 white gif */
16 document.mozSetImageElement("e", img);
17 img.onload = function () {
18 document.documentElement.className = "";
19 };
20 }, false);
22 </script>
23 </body>
24 </html>