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.
2 var actual = '';
3 var expected = 'A0B1B2C0C1C2';
5 var x = Iterator([1,2,3], true);
7 for (var a in x) {
8 actual += 'A' + a;
9 for (var b in x) {
10 actual += 'B' + b;
11 }
12 }
14 var y = Iterator([1,2,3], true);
16 for (var c in y) {
17 actual += 'C' + c;
18 }
19 for (var d in y) {
20 actual += 'D' + d;
21 }
23 reportCompare(expected, actual, "Handle nested Iterator iteration right");