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 function TestCase(n, d, e, a) {
2 this.expect = e;
3 this.passed = getTestCaseResult(this.expect, this.actual);
4 }
5 function getTestCaseResult(expect, actual) {}
6 new TestCase(
7 TestCase(3000000000.5)
8 );
9 new TestCase(null,null, String('Sally and Fred are sure to come'.match(/^[a-z\s]*/i)));