diff --git a/netwerk/test/unit/test_bug894586.js b/netwerk/test/unit/test_bug894586.js index e3264c6b9dd8..9244474dc323 100644 --- a/netwerk/test/unit/test_bug894586.js +++ b/netwerk/test/unit/test_bug894586.js @@ -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, diff --git a/netwerk/test/unit/test_protocolproxyservice.js b/netwerk/test/unit/test_protocolproxyservice.js index 21351fffc73a..36b54d946e2b 100644 --- a/netwerk/test/unit/test_protocolproxyservice.js +++ b/netwerk/test/unit/test_protocolproxyservice.js @@ -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; },