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 Array.prototype.__defineSetter__(32, function() { print("Hello from arbitrary JS");});
2 var UBound = 0;
3 var expect= '';
4 var expectedvalues = [];
5 for (var j=0; j < 10; j++) {
6 addThis();
7 addThis();
8 addThis();
9 addThis();
10 }
11 function addThis() {
12 expectedvalues[UBound] = expect;
13 UBound++;
14 }