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 gFutureCalls = [];
3 function add_future_call(index, func)
4 {
5 if (!(index in gFutureCalls)) {
6 gFutureCalls[index] = [];
7 }
8 }
10 function check_reset_test(time)
11 {
12 }
14 check_reset_test(0);
16 for (var i = 1; i <= 8; ++i) {
17 (function(j) {
18 add_future_call(j, function() { check_reset_test(j); });
19 })(i);
20 }