Bug 1147562 - Update remaining callsites of newChannel before landing the shim in netwerk/ (r=jduell)

This commit is contained in:
Christoph Kerschbaumer 2015-04-10 09:58:16 -07:00
parent 7b4191ff98
commit 2846cece87
2 changed files with 7 additions and 0 deletions

View File

@ -24,6 +24,10 @@ ProtocolHandler.prototype = {
Ci.nsIProtocolHandler.URI_NON_PERSISTABLE |
Ci.nsIProtocolHandler.URI_SYNC_LOAD_IS_OK,
newURI: function(aSpec, aOriginCharset, aBaseURI) this.uri,
newChannel2: function(aURI, aLoadInfo) {
this.loadInfo = aLoadInfo;
return this;
},
newChannel: function(aURI) this,
allowPort: function(port, scheme) port != -1,

View File

@ -51,6 +51,9 @@ TestProtocolHandler.prototype = {
uri.spec = spec;
return uri;
},
newChannel2: function(uri, aLoadInfo) {
throw Components.results.NS_ERROR_NOT_IMPLEMENTED;
},
newChannel: function(uri) {
throw Components.results.NS_ERROR_NOT_IMPLEMENTED;
},