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-e8de64e7e9fe-linux
2 // Flags: --ion-eager
3 //
4 function printStatus (msg) {}
5 function printBugNumber (num) {}
6 function reportCompare (expected, actual, description) {
7 printStatus ("Expected value '" + toPrinted(expected) + "' matched actual value '" + toPrinted(actual) + "'");
8 }
9 try {
10 reportCompare(expectCompile, actualCompile, summary + ': compile actual');
11 } catch(ex) { }
12 var lfcode = new Array();
13 lfcode.push("\
14 var bar = {\
15 b: 2,\
16 };\
17 var results = [];\
18 for each (let [key, value] in Iterator(bar))\
19 results.push(key + \":\" + (results(isXMLName(), \"ok\")));\
20 var expect = \"a:1;b:2\";\
21 ");
22 lfcode.push("\
23 var BUGNUMBER = 244619;\
24 var summary = 'Don\\'t Crash';\
25 var actual = 'Crash';\
26 function f1()\
27 eval.call((enterFunc ('test')), \"var a = 'vodka'\");\
28 gczeal(4);\
29 reportCompare(expect, actual, summary);\
30 ");
31 while (true) {
32 var file = lfcode.shift(); if (file == undefined) { break; }
33 if (file == "evaluate") {
34 } else {
35 loadFile(file);
36 }
37 }
38 function loadFile(lfVarx) {
39 try {
40 if (lfVarx.substr(-3) == ".js") {
41 switch (lfRunTypeId) { }
42 } else {
43 evaluate(lfVarx);
44 }
45 } catch (lfVare) {
46 }
47 }