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"><head>
3 <title>table-repaint-c</title>
4 <style>
5 td {
6 width: 50px;
7 height: 50px;
8 }
9 </style>
10 </head>
11 <body>
12 <table>
13 <col id="foo">
14 <tbody>
15 <tr>
16 <td bgcolor="black"></td>
17 <td bgcolor="lime"></td>
18 </tr>
19 </tbody>
20 </table>
21 <script>
22 function foo() {
23 var x=document.getElementById("foo");
24 x.style.visibility = 'collapse';
25 document.documentElement.removeAttribute("class");
26 }
27 document.addEventListener("MozReftestInvalidate", foo, false);
28 </script>
29 </body>
30 </html>