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 before = '';
2 var after = '';
4 function g(b) {
5 for (var i = 0; i < 10; ++i) {
6 }
7 }
9 function f(xa_arg) {
10 var xa = xa_arg;
11 for (var i = 0; i < 5; ++i) {
12 var j = i + xa[i];
13 before += j + ',';
14 g();
15 after += j + ',';
16 }
17 }
19 f([ 0, 1, 2, 3, 4 ]);
20 assertEq(before, after);