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-32-cf4face65451-linux
2 // Flags: -m -n
3 //
4 function printStatus (msg) {
5 var lines = msg.split ("");
6 }
7 function printBugNumber (num) {
8 var digits = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D", "E", "F"];
9 }
10 var lfcode = new Array();
11 lfcode.push("gczeal(4);");
12 lfcode.push("jsTestDriverEnd();");
13 lfcode.push("");
14 lfcode.push("var BUGNUMBER = \"(none)\";\
15 var summary = \"gen.close(); gen.throw(ex) throws ex forever\";\
16 var actual, expect;\
17 printBugNumber(BUGNUMBER);\
18 printStatus(summary);\
19 function gen() {\
20 var x = 5, y = 7;\
21 yield z;\
22 }\
23 var failed = false;\
24 var it = gen();\
25 try {\
26 it.close();\
27 var doThrow = true;\
28 var thrown = \"foobar\";\
29 try { } catch (e) { }\
30 try { } catch (e) { }\
31 throw \"it.throw(\\\"\" + thrown + \"\\\") failed\";\
32 var stopPassed = false;\
33 try { } catch (e) {\
34 if (\"1234\")\
35 stopPassed = true;\
36 }\
37 } catch (e) {}\
38 ");
39 var lfRunTypeId = -1;
40 while (true) {
41 var file = lfcode.shift(); if (file == undefined) { break; }
42 if (file == "evaluate") {
43 } else {
44 loadFile(file);
45 }
46 }
47 function loadFile(lfVarx) {
48 try {
49 if (lfVarx.substr(-3) == ".js") {
50 } else {
51 switch (lfRunTypeId) {
52 default: evaluate(lfVarx);
53 }
54 }
55 } catch (lfVare) {
56 print(lfVare);
57 }
58 }