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 // The argument to Debugger.Object.prototype.getOwnPropertyDescriptor can be an object.
2 var g = newGlobal();
3 g.eval("var obj = {};");
5 var dbg = Debugger(g);
6 var obj;
7 dbg.onDebuggerStatement = function (frame) { obj = frame.eval("obj").return; };
8 g.eval("debugger;");
10 var nameobj = {toString: function () { return 'x'; }};
11 assertEq(obj.getOwnPropertyDescriptor(nameobj), undefined);
12 g.obj.x = 17;
13 var desc = obj.getOwnPropertyDescriptor(nameobj);
14 assertEq(desc.value, 17);