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("function addThis() {}");
3 lfcode.push("\
4 var UBound = 0;\
5 var expectedvalues = [];\
6 addThis();\
7 function addThis() {\
8 expectedvalues[UBound] = expect;\
9 UBound++;\
10 }\
11 ");
12 lfcode.push("\
13 var expect = 'No Crash';\
14 for (var i = 0; i < (2 << 16); i++) addThis();\
15 ");
16 while (true) {
17 var file = lfcode.shift(); if (file == undefined) { break; }
18 try { evaluate(file); } catch(lfVare) {}
19 }