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 // This test should not assert in a debug build.
3 var q1={};
4 var $native = function () {
5 for (var i = 0, l = arguments.length; i < l; i++) {
6 arguments[i].extend = function (props) {};
7 }
8 };
9 $native(q1, Array, String, Number);
10 Array.extend({});
11 Number.extend({});
12 Object.Native = function () {
13 for (var i = 0; i < arguments.length; i++) {
14 arguments[i].eeeeee = (function(){});
15 }
16 };
17 new Object.Native(q1, Array, String, Number);