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 t1(v)
2 {
3 if (!v)
4 return 1;
5 return 0;
6 }
8 assertEq(t1(objectEmulatingUndefined()), 1);
9 assertEq(t1(objectEmulatingUndefined()), 1);
10 assertEq(t1(objectEmulatingUndefined()), 1);
12 function t2(v)
13 {
14 if (!v)
15 return 1;
16 return 0;
17 }
19 assertEq(t2(17), 0);
20 assertEq(t2(0), 1);
21 assertEq(t2(-0), 1);
22 assertEq(t2(objectEmulatingUndefined()), 1);
23 assertEq(t2(objectEmulatingUndefined()), 1);
24 assertEq(t2(objectEmulatingUndefined()), 1);