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 var lfcode = new Array();
2 lfcode.push("const baz = 'bar';");
3 lfcode.push("2");
4 lfcode.push("{ function foo() {} }");
5 lfcode.push("evaluate('\
6 var INVALIDATE_MODES = INVALIDATE_MODE_STRINGS.map(s => ({mode: s}));\
7 function range(n, m) {}\
8 function seq_scan(array, f) {}\
9 function assertStructuralEq(e1, e2) {}\
10 for (var i = 0, l = a.length; i < l; i++) {}\
11 ');");
12 lfcode.push("for (var x of Set(Object.getOwnPropertyNames(this))) {}");
13 var lfRunTypeId = -1;
14 while (true) {
15 var file = lfcode.shift(); if (file == undefined) { break; }
16 loadFile(file)
17 }
18 function loadFile(lfVarx) {
19 try {
20 if (lfVarx.substr(-3) == ".js") {}
21 if (!isNaN(lfVarx)) {
22 lfRunTypeId = parseInt(lfVarx);
23 } else {
24 switch (lfRunTypeId) {
25 case 2: new Function(lfVarx)(); break;
26 default: evaluate(lfVarx); break;
27 }
28 }
29 } catch (lfVare) {}
30 }