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 actual = '';
2 expected = '2,4,8,16,32,32,undefined,2,4,8,16,32,32,undefined,2,4,8,16,32,32,undefined,2,4,8,16,32,32,undefined,2,4,8,16,32,32,undefined,';
4 var f = function() {
5 var p = 1;
7 function h() {
8 function g() {
9 for (var i = 0; i < 5; ++i) {
10 p = p * 2;
11 appendToActual(p);
12 }
13 }
14 g();
15 }
17 h();
19 appendToActual(p);
20 }
22 for (var i = 0; i < 5; ++i) {
23 f();
24 appendToActual();
25 }
29 assertEq(actual, expected)