Add site-specific overrides and remove the overruling global.

This commit is contained in:
wolfbeast 2017-08-26 15:04:25 +02:00 committed by Roy Tam
commit 020e884bb8
2 changed files with 4 additions and 10 deletions

View file

@ -1854,16 +1854,6 @@ Navigator::GetUserAgent(nsPIDOMWindowInner* aWindow, nsIURI* aURI,
{
MOZ_ASSERT(NS_IsMainThread());
if (!aIsCallerChrome) {
const nsAdoptingString& override =
mozilla::Preferences::GetString("general.useragent.override");
if (override) {
aUserAgent = override;
return NS_OK;
}
}
nsresult rv;
nsCOMPtr<nsIHttpProtocolHandler>
service(do_GetService(NS_NETWORK_PROTOCOL_CONTRACTID_PREFIX "http", &rv));