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 causeOSI = true;
3 function rec(x, self) {
4 if (x === 0 || x !== x) {
5 if (causeOSI) {
6 causeOSI = false;
7 self(NaN, self)
8 causeOSI = true;
9 }
10 return;
11 }
12 self(x - 1, self);
13 }
15 // Use enough iterations to type infer the script.
16 causeOSI = false;
17 for (var i = 0; i < 20; ++i)
18 rec(1, rec);
19 causeOSI = true;
21 rec(2, rec)