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 var arr = ['this', 'works', 'for', 'me'];
2 for (var i = 0; i < arr.length; ++i) {
3 var result = arr[i];
4 switch (i) {
5 case 0: assertEq('this', result); break;
6 case 1: assertEq('works', result); break;
7 case 2: assertEq('for', result); break;
8 case 3: assertEq('me', result); break;
9 }
10 }
12 /* int32_t getelem for dense array. */