Bug 404726: Addon compatibility check gives many alerts (toolkit and
security portions). r=gavin.sharp, r=kengert git-svn-id: svn://10.0.0.236/trunk@243115 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -293,6 +293,8 @@ loadListener.prototype = {
|
||||
aIID.equals(Ci.nsIStreamListener) ||
|
||||
aIID.equals(Ci.nsIChannelEventSink) ||
|
||||
aIID.equals(Ci.nsIInterfaceRequestor) ||
|
||||
aIID.equals(Ci.nsIBadCertListener2) ||
|
||||
aIID.equals(Ci.nsISSLErrorListener) ||
|
||||
// See FIXME comment below
|
||||
aIID.equals(Ci.nsIHttpEventSink) ||
|
||||
aIID.equals(Ci.nsIProgressEventSink) ||
|
||||
@@ -348,6 +350,16 @@ loadListener.prototype = {
|
||||
return this.QueryInterface(aIID);
|
||||
},
|
||||
|
||||
// nsIBadCertListener2
|
||||
notifyCertProblem: function SRCH_certProblem(socketInfo, status, targetSite) {
|
||||
return true;
|
||||
},
|
||||
|
||||
// nsISSLErrorListener
|
||||
notifySSLError: function SRCH_SSLError(socketInfo, error, targetSite) {
|
||||
return true;
|
||||
},
|
||||
|
||||
// FIXME: bug 253127
|
||||
// nsIHttpEventSink
|
||||
onRedirect: function (aChannel, aNewChannel) {},
|
||||
|
||||
@@ -647,6 +647,7 @@ SuggestAutoComplete.prototype = {
|
||||
this._suggestURI = submission.uri;
|
||||
var method = (submission.postData ? "POST" : "GET");
|
||||
this._request.open(method, this._suggestURI.spec, true);
|
||||
this._request.channel.notificationCallbacks = new SearchSuggestLoadListener();
|
||||
|
||||
var self = this;
|
||||
function onReadyStateChange() {
|
||||
@@ -711,6 +712,30 @@ SuggestAutoComplete.prototype = {
|
||||
Ci.nsIAutoCompleteObserver])
|
||||
};
|
||||
|
||||
function SearchSuggestLoadListener() {
|
||||
}
|
||||
SearchSuggestLoadListener.prototype = {
|
||||
// nsIBadCertListener2
|
||||
notifyCertProblem: function SSLL_certProblem(socketInfo, status, targetSite) {
|
||||
return true;
|
||||
},
|
||||
|
||||
// nsISSLErrorListener
|
||||
notifySSLError: function SSLL_SSLError(socketInfo, error, targetSite) {
|
||||
return true;
|
||||
},
|
||||
|
||||
// nsIInterfaceRequestor
|
||||
getInterface: function SSLL_getInterface(iid) {
|
||||
return this.QueryInterface(iid);
|
||||
},
|
||||
|
||||
// nsISupports
|
||||
QueryInterface: XPCOMUtils.generateQI([Ci.nsIBadCertListener2,
|
||||
Ci.nsISSLErrorListener,
|
||||
Ci.nsIInterfaceRequestor])
|
||||
};
|
||||
|
||||
/**
|
||||
* SearchSuggestAutoComplete is a service implementation that handles suggest
|
||||
* results specific to web searches.
|
||||
|
||||
Reference in New Issue
Block a user