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 var gTestcases = Array;
2 function TestCase(n, d, e, a) {
3 this.description = d
4 gTestcases[gTc] = this
5 }
6 TestCase.prototype.dump=function () + + +
7 + this.description + +
8 + + '\n';function printStatus (msg)
9 function toPrinted(value) {
10 }
11 function reportCompare(expected, actual, description) {
12 new TestCase("unknown-test-name", description, expected, actual)
13 }
14 gTc = 0;;
15 function jsTestDriverEnd() {
16 for (var i = 0; i < gTestcases.length; i++)
17 gTestcases[i].dump()
18 }
19 var summary = 'Do not assert with try/finally inside finally';
20 var expect = 'No Crash';
21 reportCompare(expect, printStatus, summary);
22 jsTestDriverEnd();
23 jsTestDriverEnd();
24 try {
25 f
26 } catch (ex) {
27 actual = ''
28 }
29 reportCompare(expect, actual, 5);
30 jsTestDriverEnd()