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 // Breaking out of a for-of loop over a generator-iterator does not close the iterator.
3 load(libdir + "iteration.js");
5 function range(n) {
6 for (var i = 0; i < n; i++)
7 yield i;
8 }
10 var r = range(10);
11 var s = '';
12 for (var x of r) {
13 s += x;
14 if (x == 4)
15 break;
16 }
17 s += '/';
18 for (var y of r)
19 s += y;
20 assertEq(s, '01234/56789');