From 1d154e9fe43d0957cb2751f21d7cd13399a25fde Mon Sep 17 00:00:00 2001 From: Christoph Kerschbaumer Date: Fri, 10 Apr 2015 09:58:16 -0700 Subject: [PATCH] Bug 1147562 - Update remaining callsites of newChannel before landing the shim in netwerk/ (r=jduell) --- netwerk/test/unit/test_bug894586.js | 4 ++++ netwerk/test/unit/test_protocolproxyservice.js | 3 +++ 2 files changed, 7 insertions(+) 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; },