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 // test getthisprop
3 var expected = "22,22,22,;33,33,33,;";
4 var actual = '';
6 function f() {
7 for (var i = 0; i < 3; ++i) {
8 actual += this.b + ',';
9 }
10 actual += ';';
11 }
13 function A() {
14 this.a = 11;
15 this.b = 22;
16 };
18 A.prototype.f = f;
20 function B() {
21 this.b = 33;
22 this.c = 44;
23 };
25 B.prototype.f = f;
27 new A().f();
28 new B().f();
30 assertEq(actual, expected);