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 function bogusConstruct(target) { return 4; }
2 function bogusConstructUndefined(target) { }
4 var handler = { construct: bogusConstruct }
6 function callable() {}
8 var p = new Proxy(callable, handler);
10 assertThrowsInstanceOf(function () { new p(); }, TypeError,
11 "[[Construct must throw if an object is not returned.");
13 handler.construct = bogusConstructUndefined;
14 assertThrowsInstanceOf(function () { new p(); }, TypeError,
15 "[[Construct must throw if an object is not returned.");
17 if (typeof reportCompare === "function")
18 reportCompare(0,0, "OK");