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 // onPop handlers fire even on frames that make tail calls.
2 var g = newGlobal();
3 var dbg = new Debugger(g);
4 var log;
6 g.eval('function f(n) { if (n > 0) f(n-1); else debugger; }');
8 dbg.onEnterFrame = function handleEnter(frame) {
9 log += '(';
10 frame.onPop = function handlePop(c) {
11 log += ')';
12 assertEq(typeof c == "object" && 'return' in c, true);
13 };
14 };
16 log = '';
17 g.f(10);
18 assertEq(log, "((((((((((()))))))))))");