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 <!--
4 https://bugzilla.mozilla.org/show_bug.cgi?id=405242
5 -->
6 <head>
7 <title>Test for Bug 405252</title>
8 <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
9 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
10 </head>
11 <body>
12 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=405242">Mozilla Bug 405242</a>
13 <p id="display"></p>
14 <div id="content" style="display: none">
16 </div>
17 <pre id="test">
18 <script class="testbody" type="text/javascript">
19 /** Test for Bug 405242 **/
20 var sel = document.createElement("select");
21 sel.appendChild(new Option());
22 sel.appendChild(new Option());
23 sel.appendChild(new Option());
24 opt = new Option();
25 opt.value = 10;
26 sel.appendChild(opt);
27 sel.options.remove(0);
28 sel.options.remove(1000);
29 sel.options.remove(-1);
30 is(sel.length, 1, "Unexpected option collection length");
31 is(sel[0].value, 10, "Unexpected remained option");
32 </script>
33 </pre>
34 </body>
35 </html>