Bug 1407679 - Merge nsIIOService and nsIIOService2 r=nwgh
Removes deprecated nsIIOService2.newChannelFromURIWithProxyFlags MozReview-Commit-ID: Gr3nA25kcre
This commit is contained in:
@@ -25,7 +25,7 @@
|
||||
#include "nsIDNSRecord.h"
|
||||
#include "nsIDNSService.h"
|
||||
#include "nsIStreamConverterService.h"
|
||||
#include "nsIIOService2.h"
|
||||
#include "nsIIOService.h"
|
||||
#include "nsIProtocolProxyService.h"
|
||||
#include "nsIProxyInfo.h"
|
||||
#include "nsIProxiedChannel.h"
|
||||
@@ -3475,15 +3475,9 @@ WebSocketChannel::AsyncOpen(nsIURI *aURI,
|
||||
return rv;
|
||||
}
|
||||
|
||||
nsCOMPtr<nsIIOService2> io2 = do_QueryInterface(ioService, &rv);
|
||||
if (NS_FAILED(rv)) {
|
||||
NS_WARNING("WebSocketChannel: unable to continue without ioservice2");
|
||||
return rv;
|
||||
}
|
||||
|
||||
// Ideally we'd call newChannelFromURIWithLoadInfo here, but that doesn't
|
||||
// allow setting proxy uri/flags
|
||||
rv = io2->NewChannelFromURIWithProxyFlags2(
|
||||
rv = ioService->NewChannelFromURIWithProxyFlags2(
|
||||
localURI,
|
||||
mURI,
|
||||
nsIProtocolProxyService::RESOLVE_PREFER_HTTPS_PROXY |
|
||||
|
||||
Reference in New Issue
Block a user