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 testNullCallee() {
2 try {
3 function f() {
4 var x = new Array(5);
5 for (var i = 0; i < 5; i++)
6 x[i] = a[i].toString();
7 return x.join(',');
8 }
9 f([[1],[2],[3],[4],[5]]);
10 f([null, null, null, null, null]);
11 } catch (e) {
12 return true;
13 }
14 return false;
15 }
16 assertEq(testNullCallee(), true);