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("\
2 for each(let x in [\n\
3 true,\n\
4 (1),\n\
5 (1),\n\
6 (1),\n\
7 (1),\n\
8 true,\n\
9 true,\n\
10 true,\n\
11 (1),\n\
12 true,\n\
13 true,\n\
14 (1),\n\
15 true,\n\
16 true,\n\
17 (1),\n\
18 (1),\n\
19 true,\n\
20 true,\n\
21 true,\n\
22 true\n\
23 ]) { \n\
24 ((function f(aaaaaa) {\n\
25 return aaaaaa.length == 0 ? 0 : aaaaaa[0] + f(aaaaaa.slice(1))\n\
26 })([\n\
27 x,\n\
28 Math.I,\n\
29 '',\n\
30 null,\n\
31 Math.I,\n\
32 null,\n\
33 new String(),\n\
34 new String()\n\
35 ]))\n\
36 }"))()
38 /* Don't assert/crash. */