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 // Debugger.Object.prototype.apply/call works with function proxies
3 var g = newGlobal();
4 g.eval("function f() { debugger; }");
5 var dbg = Debugger(g);
6 var hits = 0;
7 dbg.onDebuggerStatement = function (frame) {
8 var proxy = frame.arguments[0];
9 assertEq(proxy.name, undefined);
10 assertEq(proxy.apply(null, [33]).return, 34);
11 assertEq(proxy.call(null, 33).return, 34);
12 hits++;
13 };
14 g.eval("f(Proxy.createFunction({}, function (arg) { return arg + 1; }));");
15 assertEq(hits, 1);