Bug 1334443 - Crash in mozilla::net::nsProtocolProxyService::LoadHostFilters r=bagder

MozReview-Commit-ID: JugUEnMzQ4r
This commit is contained in:
Valentin Gosu 2017-02-01 02:29:17 +01:00
parent e92962ff1e
commit 60dca5c744

View File

@ -642,10 +642,9 @@ nsProtocolProxyService::PrefsChanged(nsIPrefBranch *prefBranch,
mFailedProxyTimeout);
if (!pref || !strcmp(pref, PROXY_PREF("no_proxies_on"))) {
rv = prefBranch->GetCharPref(PROXY_PREF("no_proxies_on"),
getter_Copies(tempString));
if (NS_SUCCEEDED(rv))
LoadHostFilters(tempString.get());
nsCString no_proxies;
proxy_GetStringPref(prefBranch, PROXY_PREF("no_proxies_on"), no_proxies);
LoadHostFilters(no_proxies.get());
}
// We're done if not using something that could give us a PAC URL