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 SECTION = "15.4.5.2-2";
2 addCase(new Array, 0, Math, Math.pow(2, SECTION));
3 var arg = "", i = 0;
4 var a = eval("new Array(" + arg + ")");
5 addCase(a, i, +i + 1, Math.pow(2, 12) + i + 1, true);
6 function addCase(object, old_len, set_len, new_len, checkitems) {
7 for (var i = old_len; i < new_len; i++) if (object[i] != 0) {}
8 }