Bug 1529509 - set loadInfo property in newChannel() for nsLDAPProtocolHandler and ItipProtocolHandler. r=jorgk,MakeMyDay
This commit is contained in:
Родитель
bd1bde2aa0
Коммит
6c097bd8ad
|
@ -14,9 +14,10 @@ function NYI() {
|
|||
throw Cr.NS_ERROR_NOT_IMPLEMENTED;
|
||||
}
|
||||
|
||||
function ItipChannel(URI) {
|
||||
function ItipChannel(URI, aLoadInfo) {
|
||||
this.wrappedJSObject = this;
|
||||
this.URI = this.originalURI = URI;
|
||||
this.loadInfo = aLoadInfo;
|
||||
}
|
||||
ItipChannel.prototype = {
|
||||
QueryInterface: ChromeUtils.generateQI([Ci.nsIChannel, Ci.nsIRequest]),
|
||||
|
@ -64,7 +65,7 @@ ItipProtocolHandler.prototype = {
|
|||
},
|
||||
newChannel: function(URI, aLoadInfo) {
|
||||
dump("Creating new ItipChannel for " + URI + "\n");
|
||||
return new ItipChannel(URI);
|
||||
return new ItipChannel(URI, aLoadInfo);
|
||||
},
|
||||
};
|
||||
|
||||
|
|
|
@ -34,6 +34,7 @@ function makeProtocolHandler(aCID, aProtocol, aDefaultPort) {
|
|||
var channel = Cc["@mozilla.org/network/ldap-channel;1"]
|
||||
.createInstance(Ci.nsIChannel);
|
||||
channel.init(aURI);
|
||||
channel.loadInfo = aLoadInfo;
|
||||
return channel;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче