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 f() {
2 for(var i=0; i<3; i++) {
3 var x = -i / 100;
4 assertEq(x * -100, i);
5 }
6 }
7 f();
9 function g() {
10 for (var i = 0; i < 2; i++) {
11 var a = i ? true : false;
12 var x = -a / 100;
13 assertEq(x * -100, i);
14 }
15 }
16 g();
18 function h() {
19 for (var i = 0; i < 20; i++)
20 var x = (0x7ffffff4 + i) / 100;
21 assertEq(x, 21474836.55);
22 }
23 h();