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 try {
2 function g(code) {
3 code = code.replace(/\/\*DUPTRY\d+\*\//, function(k) {
4 var n = parseInt(k.substr(8), 10);
5 return aa("try{}catch(e){}", n);
6 });
7 var f = new Function(code);
8 f()
9 }
10 function aa(s, n) {
11 if (n == 1) {
12 return s;
13 }
14 var s2 = s + s;
15 var r = n % 2;
16 var d = (n - r) / 2;
17 var m = aa(s2, d);
18 return r ? m + s : m;
19 }
20 g("switch(x){default:case l:/*DUPTRY5338*/case 0:x}");
21 } catch (e) {}