Bug 1077078: Don't spam stderr when failing to create a channel. r=mcmanus

This commit is contained in:
Dave Townsend 2014-10-03 09:59:10 -07:00
parent bb79bebd44
commit 72e0d24a4d

View File

@ -595,7 +595,8 @@ nsIOService::NewChannelFromURIWithProxyFlags(nsIURI *aURI,
rv = pph->NewProxiedChannel(aURI, nullptr, aProxyFlags, aProxyURI, result);
else
rv = handler->NewChannel(aURI, result);
NS_ENSURE_SUCCESS(rv, rv);
if (NS_FAILED(rv))
return rv;
// Some extensions override the http protocol handler and provide their own
// implementation. The channels returned from that implementation doesn't