I am changing proxy with xpcom api, but this change works only once, later
changes does not work.
nsCOMPtr<nsIPref> prefs(do_GetService(NS_PREF_CONTRACTID));
nsresult nsres=prefs->SetCharPref("network.proxy.socks", proxy.hostName());
nsres is ok in all cases.
is it an api bug or am i doing something wrong?
if (prefService) {
prefService->SavePrefFile(nsnull);
prefService->ResetPrefs();
prefService->ReadUserPrefs(nsnull);
}
does not help too
setting browser offline and then online by nsIIOService also doesnt seem to
help.
_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding