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|
3 this.name = "outer";
4 var sb = evalcx('');
5 sb.name = "inner";
6 sb.parent = this;
7 function f() { return this.name; }
8 assertEq(evalcx('this.f = parent.f;\n' +
9 'var s = "";\n' +
10 'for (i = 0; i < 10; ++i)\n' +
11 ' s += f();\n' +
12 's',
13 sb),
14 "outerouterouterouterouterouterouterouterouterouter");