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 <body style="position: relative">
3 <div id="container" style="position: relative; height: 300px">
4 <div style="position:absolute; top: 0; left: 0">
5 <textarea rows="6">
6 You should be seeing the "Should see me" text.
7 a
8 b
9 c
10 d
11 e
12 f
13 g
14 h
15 i
16 j
17 k
18 l
19 m
20 n
21 o
22 p
23 q
24 r
25 s
26 t
27 u
28 Should see me.
29 </textarea>
30 </div>
31 </div>
32 <script>
33 var textarea = document.querySelector("textarea");
34 textarea.scrollTop = textarea.scrollHeight
35 document.getElementById("container").style.overflow = "hidden";
36 </script>
37 </body>