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 load(libdir + "asserts.js");
3 var target = {};
4 Object.getOwnPropertyDescriptor(new Proxy(target, {
5 getOwnPropertyDescriptor: function () {
6 return {value: 2, configurable: true};
7 }
8 }), 'foo');
10 var target = {};
11 Object.preventExtensions(target);
12 assertThrowsInstanceOf(function () {
13 Object.getOwnPropertyDescriptor(new Proxy(target, {
14 getOwnPropertyDescriptor: function () {
15 return {value: 2, configurable: true};
16 }
17 }), 'foo');
18 }, TypeError);