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 lang="en-US" class="reftest-wait">
3 <head>
4 <title>Testcase, bug 830299</title>
5 <meta charset=UTF-8>
6 <style type="text/css">
8 html { margin: 1px; padding: 2px }
9 body { margin: 4px; padding: 8px }
11 #outer {
12 position: absolute;
13 overflow: hidden;
14 transform: translateX(0px);
15 top: 3px; left: 5px;
16 width: 200px; height: 200px;
17 background: yellow;
18 }
20 #inner {
21 position: fixed;
22 top: 7px; left: 9px;
23 width: 100px; height: 100px;
24 background: aqua;
25 }
27 </style>
28 <script type="text/javascript">
30 window.addEventListener("load", function(event) {
31 setTimeout(function() {
32 document.getElementById("inner").style.display = "";
33 document.documentElement.removeAttribute("class");
34 }, 100);
35 }, false);
37 </script>
38 </head>
39 <body>
41 <div id="outer">
42 <div id="inner" style="display:none">inner</div>
43 </div>
45 </body>
46 </html>