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,undefined,64,128,256,512,1024,undefined,2048,4096,8192,16384,32768,undefined,65536,131072,262144,524288,1048576,undefined,2097152,4194304,8388608,16777216,33554432,undefined,';
4 var f = function() {
5 var p = 1;
7 function g() {
8 for (var i = 0; i < 5; ++i) {
9 p = p * 2;
10 appendToActual(p);
11 }
12 }
14 return g;
15 }
17 var g = f();
18 for (var i = 0; i < 5; ++i) {
19 g();
20 appendToActual();
21 }
25 assertEq(actual, expected)