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.
2 expected = '1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,';
3 function slice(a, b) {
4 return expected;
5 }
6 function f() {
7 var length = 4;
8 var index = 0;
9 function get3() {
10 if (length - index < 3)
11 return null;
12 return slice(index, ++index);
13 }
14 var bytes = null;
15 while (bytes = get3()) { }
16 }
17 f();