зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1147562 - Update remaining callsites of newChannel before landing the shim in netwerk/ (r=jduell)
This commit is contained in:
Родитель
d6b7600da5
Коммит
1d154e9fe4
|
@ -24,6 +24,10 @@ ProtocolHandler.prototype = {
|
||||||
Ci.nsIProtocolHandler.URI_NON_PERSISTABLE |
|
Ci.nsIProtocolHandler.URI_NON_PERSISTABLE |
|
||||||
Ci.nsIProtocolHandler.URI_SYNC_LOAD_IS_OK,
|
Ci.nsIProtocolHandler.URI_SYNC_LOAD_IS_OK,
|
||||||
newURI: function(aSpec, aOriginCharset, aBaseURI) this.uri,
|
newURI: function(aSpec, aOriginCharset, aBaseURI) this.uri,
|
||||||
|
newChannel2: function(aURI, aLoadInfo) {
|
||||||
|
this.loadInfo = aLoadInfo;
|
||||||
|
return this;
|
||||||
|
},
|
||||||
newChannel: function(aURI) this,
|
newChannel: function(aURI) this,
|
||||||
allowPort: function(port, scheme) port != -1,
|
allowPort: function(port, scheme) port != -1,
|
||||||
|
|
||||||
|
|
|
@ -51,6 +51,9 @@ TestProtocolHandler.prototype = {
|
||||||
uri.spec = spec;
|
uri.spec = spec;
|
||||||
return uri;
|
return uri;
|
||||||
},
|
},
|
||||||
|
newChannel2: function(uri, aLoadInfo) {
|
||||||
|
throw Components.results.NS_ERROR_NOT_IMPLEMENTED;
|
||||||
|
},
|
||||||
newChannel: function(uri) {
|
newChannel: function(uri) {
|
||||||
throw Components.results.NS_ERROR_NOT_IMPLEMENTED;
|
throw Components.results.NS_ERROR_NOT_IMPLEMENTED;
|
||||||
},
|
},
|
||||||
|
|
Загрузка…
Ссылка в новой задаче