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 referents can be transparent wrappers of objects in the debugger compartment.
3 var g = newGlobal();
4 g.f = function (a, b) { return a + "/" + b; };
5 var dbg = Debugger(g);
6 var hits = 0;
7 dbg.onDebuggerStatement = function (frame) {
8 var f = frame.eval("f").return;
9 assertEq(f.call(null, "a", "b").return, "a/b");
10 hits++;
11 };
12 g.eval("debugger;");
13 assertEq(hits, 1);