Skip to content

Commit 2295706

Browse files
committed
Add more declarations.
1 parent 7e3f025 commit 2295706

2 files changed

Lines changed: 30 additions & 34 deletions

File tree

src/components/https-everywhere.js

Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,21 @@
11
// LOG LEVELS ---
22

3-
VERB=1;
4-
DBUG=2;
5-
INFO=3;
6-
NOTE=4;
7-
WARN=5;
3+
let VERB=1;
4+
let DBUG=2;
5+
let INFO=3;
6+
let NOTE=4;
7+
let WARN=5;
88

99
// PREFERENCE BRANCHES
10-
PREFBRANCH_ROOT=0;
11-
PREFBRANCH_RULE_TOGGLE=1;
12-
13-
//---------------
14-
15-
https_domains = {}; // maps domain patterns (with at most one
16-
// wildcard) to RuleSets
17-
18-
https_everywhere_blacklist = {}; // URLs we've given up on rewriting because
19-
// of redirection loops
20-
21-
https_blacklist_domains = {}; // domains for which there is at least one
22-
// blacklisted URL
10+
let PREFBRANCH_ROOT=0;
11+
let PREFBRANCH_RULE_TOGGLE=1;
12+
13+
// maps domain patterns (with at most one wildcard) to RuleSets
14+
let https_domains = {};
15+
// URLs we've given up on rewriting because of redirection loops
16+
let https_everywhere_blacklist = {};
17+
// domains for which there is at least one blacklisted URL
18+
let https_blacklist_domains = {};
2319

2420
//
2521
const CI = Components.interfaces;

src/components/ssl-observatory.js

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,27 +8,27 @@ const CR = Components.results;
88
const CU = Components.utils;
99

1010
// Log levels
11-
VERB=1;
12-
DBUG=2;
13-
INFO=3;
14-
NOTE=4;
15-
WARN=5;
11+
let VERB=1;
12+
let DBUG=2;
13+
let INFO=3;
14+
let NOTE=4;
15+
let WARN=5;
1616

17-
BASE_REQ_SIZE=4096;
18-
MAX_OUTSTANDING = 20; // Max # submission XHRs in progress
19-
MAX_DELAYED = 32; // Max # XHRs are waiting around to be sent or retried
20-
TIMEOUT = 60000;
17+
let BASE_REQ_SIZE=4096;
18+
let MAX_OUTSTANDING = 20; // Max # submission XHRs in progress
19+
let MAX_DELAYED = 32; // Max # XHRs are waiting around to be sent or retried
20+
let TIMEOUT = 60000;
2121

22-
ASN_PRIVATE = -1; // Do not record the ASN this cert was seen on
23-
ASN_IMPLICIT = -2; // ASN can be learned from connecting IP
24-
ASN_UNKNOWABLE = -3; // Cert was seen in the absence of [trustworthy] Internet access
22+
let ASN_PRIVATE = -1; // Do not record the ASN this cert was seen on
23+
let ASN_IMPLICIT = -2; // ASN can be learned from connecting IP
24+
let ASN_UNKNOWABLE = -3; // Cert was seen in the absence of [trustworthy] Internet access
2525

26-
HASHLENGTH = 64; // hex(sha1 + md5)
27-
MIN_WHITELIST=1000; // do not tolerate whitelists outside these bounds
28-
MAX_WHITELIST=10000;
26+
let HASHLENGTH = 64; // hex(sha1 + md5)
27+
let MIN_WHITELIST=1000; // do not tolerate whitelists outside these bounds
28+
let MAX_WHITELIST=10000;
2929

3030
// XXX: We should make the _observatory tree relative.
31-
LLVAR="extensions.https_everywhere.LogLevel";
31+
let LLVAR="extensions.https_everywhere.LogLevel";
3232

3333
Components.utils.import("resource://gre/modules/XPCOMUtils.jsm");
3434
Components.utils.import("resource://gre/modules/ctypes.jsm");

0 commit comments

Comments
 (0)