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.
2 function testNaN(x) {
3 var x = NaN;
4 assertEq(isNaN(x), true);
5 }
6 testNaN();
8 function testInfinity(x) {
9 return (x === Infinity);
10 }
11 assertEq(testInfinity(Infinity), true);
12 assertEq(testInfinity(6), false);
13 assertEq(testInfinity(-Infinity), false);
15 function testUndefined(x) {
16 return (x === undefined);
17 }
18 assertEq(testUndefined(undefined), true);
19 assertEq(testUndefined(), true);
20 assertEq(testUndefined(5), false);