diff options
author | wolfbeast <mcwerewolf@gmail.com> | 2017-08-26 15:04:25 +0200 |
---|---|---|
committer | wolfbeast <mcwerewolf@gmail.com> | 2018-02-22 07:49:13 +0100 |
commit | 3458dde44f5693ef2c1c2ff8b056fc1f4022701d (patch) | |
tree | 79e2e865235dbf9e3e60d73f3c6544a50036b75e /dom | |
parent | ee221138d4bbb5e6209d648a1a14cc176100963a (diff) | |
download | UXP-3458dde44f5693ef2c1c2ff8b056fc1f4022701d.tar UXP-3458dde44f5693ef2c1c2ff8b056fc1f4022701d.tar.gz UXP-3458dde44f5693ef2c1c2ff8b056fc1f4022701d.tar.lz UXP-3458dde44f5693ef2c1c2ff8b056fc1f4022701d.tar.xz UXP-3458dde44f5693ef2c1c2ff8b056fc1f4022701d.zip |
Add site-specific overrides and remove the overruling global.
Diffstat (limited to 'dom')
-rw-r--r-- | dom/base/Navigator.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/dom/base/Navigator.cpp b/dom/base/Navigator.cpp index 290af152b..8b20d0196 100644 --- a/dom/base/Navigator.cpp +++ b/dom/base/Navigator.cpp @@ -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)); |