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(x) {
2 function x() {}
3 arguments[0] = 42;
4 return x;
5 }
6 assertEq(f(0), 42);
8 function g(x) {
9 function x() {}
10 assertEq(arguments[0], x);
11 }
12 g(0);
14 var caught = false;
15 try {
16 (function h(x) { function x() {} }).blah.baz;
17 } catch (e) {
18 caught = true;
19 }
20 assertEq(caught, true);