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 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
7 <script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
8 </head>
9 <script type="application/javascript">
10 // needed to forward the message to the main test page
11 window.addEventListener("message", receiveMessage, false);
13 function receiveMessage(event) {
14 window.parent.postMessage(event.data, "*");
15 }
17 function doTest() {
18 sendMouseEvent({type:'click'}, 'anchor');
19 }
20 </script>
21 <body onload="doTest()">
22 I am sandboxed with 'allow-scripts'
24 <iframe name="foo" src="file_iframe_sandbox_navigation_start.html" height="10" width="10"></iframe>
26 <a href="file_iframe_sandbox_navigation_pass.html?Test 2:%20" target='foo' id='anchor'>
27 </body>
28 </html>