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 // set.keys(), .values(), and .entries() on an empty set produce empty iterators
3 var s = Set();
4 var ki = s.keys(), vi = s.values(), ei = s.entries();
5 var p = Object.getPrototypeOf(ki);
6 assertEq(Object.getPrototypeOf(vi), p);
7 assertEq(Object.getPrototypeOf(ei), p);
9 for (let k of ki)
10 throw "FAIL";
11 for (let v of vi)
12 throw "FAIL";
13 for (let [k, v] of ei)
14 throw "FAIL";