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 = '1,2,3,4,5,5,undefined,1,2,3,4,5,5,undefined,1,2,3,4,5,5,undefined,1,2,3,4,5,5,undefined,1,2,3,4,5,5,undefined,';
4 var f = function() {
5 var p = 0;
7 function g() {
8 for (var i = 0; i < 5; ++i) {
9 p++;
10 appendToActual(p);
11 }
12 }
14 g();
16 appendToActual(p);
17 }
19 for (var i = 0; i < 5; ++i) {
20 f();
21 appendToActual();
22 }
26 assertEq(actual, expected)