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 function g() { assertEq(false, true) }
2 var ct = 0;
4 function f(b) {
5 if (b) {
6 arguments = [false];
7 f(false);
8 } else {
9 g = {
10 apply:function(x,y) {
11 ++ct;
12 assertEq(x, null);
13 assertEq(y[0], false);
14 }
15 };
16 }
17 g.apply(null, arguments);
18 }
19 f(true);
20 assertEq(ct, 2);