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 = undefined;
3 try {
4 [1, 2, 3].map(x);
5 assertEq(0, 1);
6 } catch(e) {
7 assertEq(e.toString().contains("x is not"), true);
8 }
10 try {
11 [1, 2, 3].filter(x, 1, 2);
12 assertEq(0, 1);
13 } catch(e) {
14 assertEq(e.toString().contains("x is not"), true);
15 }
16 }
17 f();