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

This commit is contained in:
Christoph Kerschbaumer 2015-04-09 10:10:57 -07:00
parent e39c6b8427
commit 48400592ff
2 changed files with 4 additions and 0 deletions

View File

@ -24,6 +24,7 @@ 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,
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;
},