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

File tree

3 files changed

+13
-5
lines changed

3 files changed

+13
-5
lines changed

.gitignore

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
*~
22
chromium.pem
33
dummy-chromium.pem
4-
pkg/crx
5-
pkg/*.crx
6-
pkg/*.xpi
4+
pkg/
75
src/chrome/content/rules/default.rulesets
86
src/defaults/rulesets.sqlite
97
*.swp

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
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,6 @@ SSLObservatory.prototype = {
533533
file.initWithPath(this.HTTPSEverywhere.rw.chromeToPath(loc));
534534
var data = this.HTTPSEverywhere.rw.read(file);
535535
this.whitelist = JSON.parse(data);
536-
this.log(DBUG, "yay\n" + data);
537536
},
538537

539538
saveCertWhitelist: function() {

0 commit comments

Comments
 (0)