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 actual = '';
2 expected = 'true,';
4 function isNotEmpty(args, i) {
5 var o = args[i];
6 if (!(o && o.length)) {
7 return false;
8 }
9 return true;
10 };
12 function f(obj) {
13 for (var i = 0; i < arguments.length; i++) {
14 if (!isNotEmpty(arguments, i))
15 return false;
16 }
17 return true;
18 }
20 appendToActual(f([1], [1], [1], "asdf", [1]));
23 assertEq(actual, expected)