summaryrefslogtreecommitdiffstats
path: root/dom/base/Navigator.cpp
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@gmail.com>2017-08-26 15:04:25 +0200
committerwolfbeast <mcwerewolf@gmail.com>2018-02-22 07:49:13 +0100
commit3458dde44f5693ef2c1c2ff8b056fc1f4022701d (patch)
tree79e2e865235dbf9e3e60d73f3c6544a50036b75e /dom/base/Navigator.cpp
parentee221138d4bbb5e6209d648a1a14cc176100963a (diff)
downloadUXP-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/base/Navigator.cpp')
-rw-r--r--dom/base/Navigator.cpp10
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));