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 class="reftest-wait">
3 <head>
4 <body onload="start()">
5 <iframe id="i" style="margin-top:100px; width:100%; height:600px;" src="layer-change-1-frame.html"></iframe>
6 <script>
7 var subw = document.getElementById("i").contentWindow;
8 function doTest() {
9 subw.scrollTo(0,0);
10 document.documentElement.removeAttribute("class");
11 }
12 function start() {
13 subw.scrollTo(0,2000);
14 }
15 window.addEventListener("MozReftestInvalidate", doTest, false);
16 </script>
17 </body>
18 </html>