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 function testClosureIncrSideExit() {
2 let(f = function (y) {
3 let(ff = function (g) {
4 for each(let h in g) {
5 if (++y > 5) {
6 return 'ddd';
7 }
8 }
9 return 'qqq';
10 }) {
11 return ff(['', null, '', false, '', '', null]);
12 }
13 }) {
14 return f(-1);
15 }
16 }
17 assertEq(testClosureIncrSideExit(), "ddd");