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