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 // Some testing for JSOP_NEW.
2 function foo(prop) {
3 this.name = "Foo";
4 this.prop = prop;
5 }
7 // Construct an object with a unique assignation to a property.
8 function f(i) {
9 var x = new foo(i);
10 return x.prop;
11 }
13 // Assert that a unique object really was created.
14 for (var i = 0; i < 100; i++)
15 assertEq(f(i), i);