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 <!--
2 Any copyright is dedicated to the Public Domain.
3 http://creativecommons.org/publicdomain/zero/1.0/
4 -->
5 <html>
6 <head>
7 <title>Plugin Clear Site Data sanitize test</title>
9 <embed id="plugin1" type="application/x-test" width="200" height="200"></embed>
11 <script type="application/javascript">
12 function testSteps()
13 {
14 // Make sure clearing by timerange is supported.
15 var p = document.getElementById("plugin1");
16 p.setSitesWithDataCapabilities(true);
18 p.setSitesWithData(
19 "foo.com:0:5," +
20 "bar.com:0:100," +
21 "baz.com:1:5," +
22 "qux.com:1:100"
23 );
25 setTimeout(testFinishedCallback, 0);
26 }
27 </script>
28 </head>
30 <body onload="testSteps();"></body>
32 </html>