Bug 1890593 - GetSystemWPADSetting for libproxy-enabled builds r=jesup

In #621429 a call to nsUnixSystemProxySettings::GetSystemWPADSetting()
was added, but that function is not available for builds with
MOZ_ENABLE_LIBPROXY. The funtion is trivial enough to just
copy it across - else there'd more boilerplate than actual code.

Differential Revision: https://phabricator.services.mozilla.com/D207197
This commit is contained in:
Christoph Moench-Tegeder 2024-04-10 21:04:41 +00:00
parent 03de1a202c
commit 0e41163647

View file

@ -99,6 +99,12 @@ nsresult nsUnixSystemProxySettings::GetProxyForURI(const nsACString& aSpec,
return NS_OK;
}
NS_IMETHODIMP
nsUnixSystemProxySettings::GetSystemWPADSetting(bool* aSystemWPADSetting) {
*aSystemWPADSetting = false;
return NS_OK;
}
NS_IMPL_COMPONENT_FACTORY(nsUnixSystemProxySettings) {
return do_AddRef(new nsUnixSystemProxySettings()).downcast<nsISupports>();
}