зеркало из https://github.com/mozilla/pjs.git
r=rhp. we want to reset any previously set proxy info if we're not supposed to be using proxies.
This commit is contained in:
Родитель
23a1b3dd9e
Коммит
7581b6bc06
|
@ -198,8 +198,13 @@ nsProtocolProxyService::ExamineForProxy(nsIURI *aURI, nsIProxy *aProxy) {
|
|||
|
||||
// if proxies are enabled and this host:port combo is
|
||||
// supposed to use a proxy, check for a proxy.
|
||||
if (!mUseProxy) return NS_OK;
|
||||
if (!CanUseProxy(aURI)) return NS_OK;
|
||||
if (!mUseProxy || !CanUseProxy(aURI)) {
|
||||
rv = aProxy->SetProxyHost(nsnull);
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
rv = aProxy->SetProxyPort(-1);
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
nsXPIDLCString scheme;
|
||||
rv = aURI->GetScheme(getter_Copies(scheme));
|
||||
|
|
Загрузка…
Ссылка в новой задаче