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,1,2,3,4,5,5,1,2,3,4,5,5,1,2,3,4,5,5,1,2,3,4,5,5,1,2,3,4,5,5,1,2,3,4,5,5,1,2,3,4,5,5,1,2,3,4,5,5,1,2,3,4,5,5,';
4 for (var i = 0; i < 10; ++i) {
5 var f = function() {
6 var p = 0;
8 function g() {
9 for (var i = 0; i < 5; ++i) {
10 p++;
11 appendToActual(p);
12 }
13 }
15 g();
17 appendToActual(p);
18 }
19 f();
20 }
24 assertEq(actual, expected)