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 // In a debuggee with functions, findScripts finds those functions' scripts.
3 var g = newGlobal();
4 g.eval('function f(){}');
5 g.eval('function g(){}');
6 g.eval('function h(){}');
8 var dbg = new Debugger();
9 var gw = dbg.addDebuggee(g);
10 var fw = gw.makeDebuggeeValue(g.f);
11 var gw = gw.makeDebuggeeValue(g.g);
12 var hw = gw.makeDebuggeeValue(g.h);
14 assertEq(dbg.findScripts().indexOf(fw.script) != -1, true);
15 assertEq(dbg.findScripts().indexOf(gw.script) != -1, true);
16 assertEq(dbg.findScripts().indexOf(hw.script) != -1, true);