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 var x = -[NaN][0];
3 assertEq(x === x, false);
4 assertEq(x !== x, true);
5 assertEq(x == x, false);
6 assertEq(x != x, true);
8 var y = -("x" / {});
9 var z = y;
10 assertEq(y === z, false);
11 assertEq(y !== z, true);
12 assertEq(y == z, false);
13 assertEq(y != z, true);
14 }
15 f();
17 function g(x, y) {
18 var z = x / y;
19 assertEq(z === z, false);
20 }
21 g(0, 0);