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 eCount = 0;
2 var funs = [function () {}, function () {}];
3 function someElement(a) {
4 ++eCount;
5 var i = (eCount >= 8) ? 1 : 0;
6 return a[i]
7 }
8 var recursionGuard = 0;
9 function recursiveThing() {
10 someElement(funs);
11 if (++recursionGuard % 2) {
12 e1();
13 }
14 }
15 function e1() {
16 try {} catch (e) {}
17 someElement(funs);
18 recursiveThing()
19 }
20 recursiveThing()
21 gc();
22 recursiveThing()
23 recursiveThing()