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 function heavyFn1(i) {
2 if (i == 3) {
3 var x = 3;
4 return [0, i].map(function (i) i + x);
5 }
6 return [];
7 }
9 function heavyFn2(i) {
10 if (i < 1000)
11 return heavyFn1(i);
12 return function () i;
13 }
15 function testHeavy2() {
16 for (var i = 0; i <= 3; i++)
17 heavyFn2(i);
18 }
20 testHeavy2();