Small fixes. · simison/https-everywhere@e6cd64c · GitHub
Skip to content

Commit e6cd64c

Browse files
committed
Small fixes.
Remove spammy log message in ssl-observatory. Add jsdoc in HTTPS.js. Add all of pkg/ to gitignore.
1 parent b4f8257 commit e6cd64c

3 files changed

Lines changed: 13 additions & 5 deletions

File tree

.gitignore

Lines changed: 1 addition & 3 deletions

src/chrome/content/code/HTTPS.js

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,18 @@ const HTTPS = {
2929
httpsForced: null,
3030
httpsForcedExceptions: null,
3131
httpsRewrite: null,
32-
32+
33+
/**
34+
* Given a channel and a list of potentially applicable rules,
35+
* redirect or abort a request if appropriate.
36+
*
37+
* @param {RuleSet[]} applicable_list A list of potentially applicable rules
38+
* (i.e. those that match on a hostname basis).
39+
* @param {nsIChannel} channel The channel to be manipulated.
40+
* @param {boolean} httpNowhereEnabled Whether to abort non-https requests.
41+
* @returns {boolean} True if the request was redirected; false if it was
42+
* untouched or aborted.
43+
*/
3344
replaceChannel: function(applicable_list, channel, httpNowhereEnabled) {
3445
var blob = HTTPSRules.rewrittenURI(applicable_list, channel.URI.clone());
3546
if (blob === null) {

src/components/ssl-observatory.js

Lines changed: 0 additions & 1 deletion

0 commit comments

Comments
 (0)