Sat, 03 Jan 2015 20:18:00 +0100
Conditionally enable double key logic according to:
private browsing mode or privacy.thirdparty.isolate preference and
implement in GetCookieStringCommon and FindCookie where it counts...
With some reservations of how to convince FindCookie users to test
condition and pass a nullptr when disabling double key logic.
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");