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 // getprop, proto, 1 shape
3 var expected = "11,22,33,11,22,33,11,22,33,11,22,33,11,22,33,";
4 var actual = '';
6 var proto = { a: 11, b: 22, c: 33 };
8 function B() {
9 }
10 B.prototype = proto;
12 function f() {
13 var o = new B();
15 for (var i = 0; i < 5; ++i) {
16 actual += o.a + ',';
17 actual += o.b + ',';
18 actual += o.c + ',';
19 }
20 }
22 f();
24 assertEq(actual, expected);