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