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 function zero() { return 0; }
2 function f(x, a) {
3 var test = 0x7fffffff;
5 for (var i=0; i<100; i++)
6 {
7 if (i == 0) {
8 test += 1;
9 var t = (test > zero()) * (0xffffffff >>> x);
10 }
11 var test2 = test | 0;
12 return [test2,t];
13 }
14 }
15 var t = f(0, "");
16 assertEq(t[0], 0x80000000 | 0);
17 assertEq(t[1], 0xffffffff >>> 0);
19 var t = f(0);
20 assertEq(t[0], 0x80000000 | 0);
21 assertEq(t[1], 0xffffffff >>> 0);