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 /* Test compiling JSOP_STRICTEQ on known doubles. */
4 function foo(x) {
5 return x === x;
6 }
8 for (var i = 0; i < 20; i++) {
9 assertEq(foo(1.2), true);
10 assertEq(foo(NaN), false);
11 }
13 function bar(x) {
14 if (x === x)
15 return true;
16 return false;
17 }
19 for (var i = 0; i < 20; i++) {
20 assertEq(bar(1.2), true);
21 assertEq(bar(NaN), false);
22 }