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 testArrayDensityChange() {
2 var x = [];
3 var count = 0;
4 for (var i=0; i < 100; ++i) {
5 x[i] = "asdf";
6 }
7 for (var i=0; i < x.length; ++i) {
8 if (i == 51)
9 {
10 x[199] = "asdf";
11 }
12 if (x[i])
13 count += x[i].length;
14 }
15 return count;
16 }
17 assertEq(testArrayDensityChange(), 404);