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 // |jit-test| error: ReferenceError
2 function TestCase(e, a)
3 this.passed = (e == a);
4 function reportCompare (expected, actual) {
5 var expected_t = typeof expected;
6 var actual_t = typeof actual;
7 if (expected_t != actual_t)
8 printStatus();
9 new TestCase(expected, actual);
10 }
11 var expect = '';
12 reportCompare(expect, '');
13 try {
14 test();
15 } catch(exc1) {}
16 function test() {
17 var { expect } = '';
18 for (var a = 1; a < 2; ++a)
19 reportCompare(expect, '');
20 }
21 test();