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
Родитель d6b7600da5
Коммит 1d154e9fe4
2 изменённых файлов: 7 добавлений и 0 удалений

Просмотреть файл

@ -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,

Просмотреть файл

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