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 // |jit-test| debug; error: ReferenceError
2 // If uncaughtExceptionHook is absent, the debuggee is terminated.
4 var g = newGlobal();
5 g.debuggeeGlobal = this;
6 g.eval("(" + function () {
7 var dbg = Debugger(debuggeeGlobal);
8 dbg.onDebuggerStatement = function (frame) {
9 if (frame.callee === null) {
10 debuggeeGlobal.log += '1';
11 var cv = frame.eval("f();");
12 debuggeeGlobal.log += '2';
13 assertEq(cv, null);
14 } else {
15 assertEq(frame.callee.name, "f");
16 debuggeeGlobal.log += '3';
17 throw new ReferenceError("oops");
18 }
19 };
20 } + ")();");
22 function onerror(msg) {
23 }
25 var log = '';
26 debugger;
27 function f() {
28 try {
29 debugger;
30 } finally {
31 log += 'x';
32 }
33 }
34 assertEq(log, '132');