зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1177909 - Part 1: support perferred proxy type while using system proxy setting; r=bagder
MozReview-Commit-ID: 7C5pSxO1d2j --HG-- extra : rebase_source : b22b533fd83ad377128781f44fe1fc0c66f5adc1
This commit is contained in:
Родитель
3167c35036
Коммит
a3cc60dae5
|
@ -1980,6 +1980,14 @@ nsProtocolProxyService::Resolve_Internal(nsIChannel *channel,
|
|||
uri->GetScheme(scheme);
|
||||
uri->GetPort(&port);
|
||||
|
||||
if (flags & RESOLVE_PREFER_SOCKS_PROXY) {
|
||||
LOG(("Ignoring RESOLVE_PREFER_SOCKS_PROXY for system proxy setting\n"));
|
||||
} else if (flags & RESOLVE_PREFER_HTTPS_PROXY) {
|
||||
scheme.AssignLiteral("https");
|
||||
} else if (flags & RESOLVE_IGNORE_URI_SCHEME) {
|
||||
scheme.AssignLiteral("http");
|
||||
}
|
||||
|
||||
// now try the system proxy settings for this particular url
|
||||
if (NS_SUCCEEDED(mSystemProxySettings->
|
||||
GetProxyForURI(spec, scheme, host, port,
|
||||
|
|
Загрузка…
Ссылка в новой задаче