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 // |jit-test| error: TypeError
3 function $ERROR() {}
4 function testMultipleArgumentsObjects() {
5 var testargs = arguments;
6 var f = function (which) {
7 var args = [ testargs ];
8 return args[which][0];
9 };
10 var arr = [0, 0, 0, 0, 1];
11 for (var i = 0; i < arr.length; i++)
12 $ERROR[i] = f(arr[i]);
13 }
14 testMultipleArgumentsObjects()