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 = 'true,';
4 var isNotEmpty = function (args, i) {
5 var o = args[i];
6 if (!(o && o.length)) {
7 return false;
8 }
9 return true;
10 };
12 var f = function(obj) {
13 for (var i = 0; i < arguments.length; i++) {
14 if (!isNotEmpty(arguments, i))
15 return false;
16 }
17 return true;
18 }
20 appendToActual(f([1], [1], [1], "asdf", [1]));
23 assertEq(actual, expected)