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 // This test creates poorly compressible input, which tests certain paths in
2 // source code compression.
3 var x = "";
4 for (var i=0; i<400; ++i) {
5 x += String.fromCharCode(i * 289);
6 }
7 var s = "'" + x + "'";
8 assertEq(Function("evt", s).toString(), "function anonymous(evt) {\n" + s + "\n}");