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 var g = newGlobal();
2 var dbg = new Debugger(g);
3 var visibleFrames = 0;
4 dbg.onEnterFrame = function (frame) {
5 print("> " + frame.script.url);
6 visibleFrames++;
7 }
9 g.eval("(" + function iife() {
10 [1].forEach(function noop() {});
11 for (let x of [1]) {}
12 } + ")()");
14 // 1 for eval, 1 for iife(), 1 for noop()
15 assertEq(visibleFrames, 3);