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 // obj.defineProperty throws if a value, getter, or setter is in a different compartment than obj
3 load(libdir + "asserts.js");
4 var g1 = newGlobal();
5 var g2 = newGlobal();
6 var dbg = new Debugger;
7 var g1w = dbg.addDebuggee(g1);
8 var g2w = dbg.addDebuggee(g2);
9 assertThrowsInstanceOf(function () { g1w.defineProperty('x', {value: g2w}); }, TypeError);
10 assertThrowsInstanceOf(function () { g1w.defineProperty('x', {get: g1w, set: g2w}); }, TypeError);