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 style="white-space:pre"> 00
5 BC
6 FG
7 JK
8 <script>
9 document.body.offsetTop;
10 var t = document.body.firstChild;
11 var sel = window.getSelection();
12 sel.collapse(t, 11);
13 sel.extend(t, 13);
15 function doTest() {
16 t.replaceData(0, 5, '');
17 document.documentElement.removeAttribute('class');
18 }
19 document.addEventListener("MozReftestInvalidate", doTest, false);
20 </script>
21 </body>
22 </html>