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 f1(b) {
2 var w = 3;
3 if (b)
4 function w() {}
5 return w;
6 }
7 assertEq(typeof f1(true), "function");
8 assertEq(f1(false), 3);
10 function f2(b, w) {
11 if (b)
12 function w() {}
13 return w;
14 }
15 assertEq(typeof f2(true, 3), "function");
16 assertEq(f2(false, 3), 3);
18 function f3(b) {
19 let (w = 3) {
20 if (b)
21 function w() {}
22 return w;
23 }
24 }
25 assertEq(f3(true, 3), 3);
26 assertEq(f3(false), 3);