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 // Binary: cache/js-dbg-64-50c1bcb49c76-linux
2 // Flags: -m -n -a
3 //
5 var lfcode = new Array();
6 lfcode.push("try { \
7 gczeal(2);\
8 exitFunc ('test');\
9 } catch(exc1) {}\
10 ");
11 lfcode.push("var summary = 'Foo'; \
12 var actual = 'No Crash';\
13 var expect = 'No Crash';\
14 test();\
15 function test() {\
16 try {\
17 eval('(function(){ <x/>.(yield 4) })().next();');\
18 }\ catch(ex) { 'Bar'; }\
19 }\
20 ");
21 while (true) {
22 var code = lfcode.shift();
23 if (code == undefined) { break; }
24 evaluate(code);
25 }