bug 1050598 - changing the pac uri should be synchronous r=hurley

--HG--
extra : rebase_source : 15cbe1d0b6c0aa966d217d7a3c64f2295eedb923
This commit is contained in:
Patrick McManus 2014-08-06 17:16:32 -04:00
parent f425449e9d
commit d0aae02f51

View File

@ -565,6 +565,10 @@ nsProtocolProxyService::PrefsChanged(nsIPrefBranch *prefBranch,
if (mProxyConfig == PROXYCONFIG_PAC) {
prefBranch->GetCharPref(PROXY_PREF("autoconfig_url"),
getter_Copies(tempString));
if (mPACMan && !mPACMan->IsPACURI(tempString)) {
LOG(("PAC Thread URI Changed - Reset Pac Thread"));
ResetPACThread();
}
} else if (mProxyConfig == PROXYCONFIG_WPAD) {
// We diverge from the WPAD spec here in that we don't walk the
// hosts's FQDN, stripping components until we hit a TLD. Doing so