зеркало из https://github.com/mozilla/gecko-dev.git
Backed out changeset 256af2be176e (bug 1744940
) because the patch it depends on is being backed out.
This commit is contained in:
Родитель
21a9b72545
Коммит
4350026566
|
@ -2048,11 +2048,6 @@ NS_IMETHODIMP
|
|||
nsHttpHandler::NewProxiedChannel(nsIURI* uri, nsIProxyInfo* givenProxyInfo,
|
||||
uint32_t proxyResolveFlags, nsIURI* proxyURI,
|
||||
nsILoadInfo* aLoadInfo, nsIChannel** result) {
|
||||
// Avoid a late initialization
|
||||
if (AppShutdown::IsInOrBeyond(ShutdownPhase::AppShutdownNetTeardown)) {
|
||||
return NS_ERROR_ILLEGAL_DURING_SHUTDOWN;
|
||||
}
|
||||
|
||||
HttpBaseChannel* httpChannel;
|
||||
|
||||
LOG(("nsHttpHandler::NewProxiedChannel [proxyInfo=%p]\n", givenProxyInfo));
|
||||
|
@ -2065,6 +2060,11 @@ nsHttpHandler::NewProxiedChannel(nsIURI* uri, nsIProxyInfo* givenProxyInfo,
|
|||
httpChannel = new nsHttpChannel();
|
||||
}
|
||||
|
||||
// Avoid a late initialization
|
||||
if (AppShutdown::IsInOrBeyond(ShutdownPhase::AppShutdownNetTeardown)) {
|
||||
return NS_ERROR_ILLEGAL_DURING_SHUTDOWN;
|
||||
}
|
||||
|
||||
return SetupChannelInternal(httpChannel, uri, givenProxyInfo,
|
||||
proxyResolveFlags, proxyURI, aLoadInfo, result);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче