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 // Test no assert or crash from outer recorders (bug 465145)
2 function testBug465145() {
3 this.__defineSetter__("x", function(){});
4 this.watch("x", function(){});
5 y = this;
6 for (var z = 0; z < 2; ++z) { x = y };
7 this.__defineSetter__("x", function(){});
8 for (var z = 0; z < 2; ++z) { x = y };
9 }
11 function testTrueShiftTrue() {
12 var a = new Array(5);
13 for (var i=0;i<5;++i) a[i] = "" + (true << true);
14 return a.join(",");
15 }
16 assertEq(testTrueShiftTrue(), "2,2,2,2,2");