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 // Handle bailing from a constructor.
3 var confuzzle = 0;
5 function BailFromConstructor() {
6 this.x = "cats";
7 this.y = confuzzle + 5;
8 return 4;
9 }
11 function f() {
12 var x;
13 for (var i = 0; i < 100; i++) {
14 if (i == 99)
15 confuzzle = undefined;
16 x = new BailFromConstructor();
17 assertEq(typeof(x), "object");
18 }
19 }
21 f();