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("1");
3 lfcode.push("");
4 lfcode.push("0");
5 lfcode.push("function arguments() { };");
6 lfcode.push("1");
7 lfcode.push("\
8 var GLOBAL_PROPERTIES = new Array();\
9 var i = 0;\
10 for ( p in this ) {\
11 if (p.startsWith('a')) GLOBAL_PROPERTIES[i++] = p;\
12 }\
13 for ( i = 0; i < GLOBAL_PROPERTIES.length; i++ ) {\
14 eval(GLOBAL_PROPERTIES[i]);\
15 }\
16 ");
17 while (true) {
18 var file = lfcode.shift(); if (file == undefined) { break; }
19 loadFile(file)
20 }
21 function loadFile(lfVarx) {
22 if (lfVarx.substr(-3) != ".js" && lfVarx.length != 1) {
23 switch (lfRunTypeId) {
24 case 0: evaluate(lfVarx); break;
25 case 1: eval(lfVarx); break;
26 }
27 } else if (!isNaN(lfVarx)) {
28 lfRunTypeId = parseInt(lfVarx);
29 }
30 }