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 // Binary: cache/js-dbg-64-9cf3ea112635-linux
2 // Flags: --ion-eager
3 //
5 var callStack = new Array();
6 function TestCase(n, d, e, a) {
7 this.expect = e;
8 this.actual = a;
9 this.passed = getTestCaseResult(e, a);
10 dump(+ this.path + ' ' + 'reason: ' + toPrinted(this.reason)+ '\n');
11 };
12 function reportCompare (expected, actual, description) {
13 var testcase = new TestCase("unknown-test-name", description, expected, actual);
14 }
15 function enterFunc (funcName) {
16 callStack.push(funcName);
17 var lastFunc = callStack.pop();
18 reportCompare(funcName, lastFunc, "Test driver failure wrong exit function ");
19 }
20 try {
21 var summary = 'String static methods';
22 var actual = '';
23 expect = '2';
24 reportCompare(expect, actual, summary + " String.toUpperCase(new Boolean(true))");
25 } catch(exc0) {}
26 try {
27 function TestCase(n, d, e, a) {}
28 enterFunc ('test');
29 reportCompare(expect, actual, summary);
30 } catch(exc2) {}