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 testMethodInitSafety() {
2 function f() { return 'fail'; }
3 function g() { return 'ok'; }
5 var s;
6 var arr = [f, f, f, f, g];
7 //assertEq(arr.length > 9, true);
8 for (var i = 0; i < arr.length; i++) {
9 var x = {m: arr[i]};
10 s = x.m();
11 }
12 return s;
13 }
14 assertEq(testMethodInitSafety(), "ok");