Skip to content

Commit d88fa8e

Browse files
committed
Actually implement BadCertListener2
1 parent edbe64b commit d88fa8e

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

src/components/https-everywhere.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -438,6 +438,11 @@ HTTPSEverywhere.prototype = {
438438
return;
439439
}
440440
HTTPS.replaceChannel(lst, channel);
441+
442+
var ssl_observatory = CC["@eff.org/ssl-observatory;1"]
443+
.getService(Components.interfaces.nsISupports)
444+
.wrappedJSObject;
445+
if (ssl_observatory.observatoryActive()) channel.notificationCallbacks = ssl_observatory;
441446
} else if (topic == "http-on-examine-response") {
442447
this.log(DBUG, "Got http-on-examine-response @ "+ (channel.URI ? channel.URI.spec : '') );
443448
HTTPS.handleSecureCookies(channel);

src/components/ssl-observatory.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,12 @@ SSLObservatory.prototype = {
130130
[ CI.nsIObserver,
131131
CI.nsIProtocolProxyFilter,
132132
//CI.nsIWifiListener,
133-
CI.nsIBadCertListener2]),
133+
CI.nsIBadCertListener2,
134+
CI.nsIInterfaceRequestor]),
135+
136+
getInterface: function(aIID) {
137+
return this.QueryInterface(aIID);
138+
},
134139

135140
wrappedJSObject: null, // Initialized by constructor
136141

0 commit comments

Comments
 (0)