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 <style>
5 fieldset {
6 background:pink;
7 overflow:hidden;
8 height:100px;
9 }
10 legend::after { content:"legend"; }
11 p {
12 background:lime;
13 height:20px;
14 }
15 </style>
16 </head>
17 <body>
18 <fieldset id="f1"><p></p></fieldset>
19 <br>
20 <fieldset id="f2"><p></p></fieldset>
21 <br>
22 <fieldset id="f3"></fieldset>
23 <script>
24 function doTest() {
25 f1.appendChild(document.createElement('legend'));
26 f2.insertBefore(document.createElement('legend'), f2.firstChild);
27 f3.appendChild(document.createElement('legend'));
28 document.documentElement.removeAttribute("class");
29 }
30 window.addEventListener("MozReftestInvalidate", doTest);
31 </script>
32 </body>
33 </html>