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>
3 <head>
4 <meta charset="utf-8">
5 <title>Test for Bug 341604</title>
6 <script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
7 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
9 </head>
10 <script type="text/javascript">
11 function doStuff() {
12 dump("*** c_if3 has loaded\n");
13 // try and submit the form - this should succeed
14 document.getElementById('a_form').submit();
15 }
16 </script>
17 <body onLoad="doStuff()">
18 I am sandboxed but with "allow-scripts allow-forms"
20 <form method="get" action="file_iframe_sandbox_form_pass.html" id="a_form">
21 First name: <input type="text" name="firstname">
22 Last name: <input type="text" name="lastname">
23 <input type="submit" onclick="doSubmit()" id="a_button">
24 </form>
25 </body>
26 </html>