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 // collection.iterator() returns an Iterator object.
3 load(libdir + "iteration.js");
5 function test(obj, name) {
6 var iter = obj[std_iterator]();
7 assertEq(typeof iter, "object");
8 assertEq(iter instanceof Iterator, true);
9 assertEq(iter.toString(), "[object " + obj.constructor.name + " Iterator]");
10 }
12 test([]);
13 test(new Map);
14 test(new Set);