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 // Don't assert.
2 gczeal(2,1);
3 eval("(function() { " + "\
4 var g1 = newGlobal('same-compartment');\
5 function test(str, f) {\
6 var x = f(eval(str));\
7 assertEq(x, f(g1.eval(str)));\
8 }\
9 test('new RegExp(\"1\")', function(r) assertEq('a1'.search(r), 1));\
10 " + " })();");
11 eval("(function() { " + "" + " })();");