summaryrefslogtreecommitdiffstats
path: root/netwerk/protocol/http/UserAgentOverrides.jsm
diff options
context:
space:
mode:
authorJustOff <Off.Just.Off@gmail.com>2018-05-15 00:32:07 +0300
committerJustOff <Off.Just.Off@gmail.com>2018-05-15 00:32:07 +0300
commit1c9d6206cb04027614d6857786d1d82767664b45 (patch)
treedd64ba865c10972e6e114783dfdfd3a988555e93 /netwerk/protocol/http/UserAgentOverrides.jsm
parent1a0462b4587a127d90e36b1f50687a223be8ba0f (diff)
downloadUXP-1c9d6206cb04027614d6857786d1d82767664b45.tar
UXP-1c9d6206cb04027614d6857786d1d82767664b45.tar.gz
UXP-1c9d6206cb04027614d6857786d1d82767664b45.tar.lz
UXP-1c9d6206cb04027614d6857786d1d82767664b45.tar.xz
UXP-1c9d6206cb04027614d6857786d1d82767664b45.zip
Revert incorrect UAO optimization that broke SSUAO
Diffstat (limited to 'netwerk/protocol/http/UserAgentOverrides.jsm')
-rw-r--r--netwerk/protocol/http/UserAgentOverrides.jsm8
1 files changed, 4 insertions, 4 deletions
diff --git a/netwerk/protocol/http/UserAgentOverrides.jsm b/netwerk/protocol/http/UserAgentOverrides.jsm
index 22c676f06..037aa575b 100644
--- a/netwerk/protocol/http/UserAgentOverrides.jsm
+++ b/netwerk/protocol/http/UserAgentOverrides.jsm
@@ -46,9 +46,9 @@ this.UserAgentOverrides = {
Services.prefs.addObserver(PREF_OVERRIDES_ENABLED, buildOverrides, false);
try {
- Services.obs.addObserver(HTTP_on_useragent_request, "http-on-useragent-request", false);
+ Services.obs.addObserver(HTTP_on_modify_request, "http-on-modify-request", false);
} catch (x) {
- // The http-on-useragent-request notification is disallowed in content processes.
+ // The http-on-modify-request notification is disallowed in content processes.
}
UserAgentUpdates.init(function(overrides) {
@@ -118,7 +118,7 @@ this.UserAgentOverrides = {
Services.prefs.removeObserver(PREF_OVERRIDES_ENABLED, buildOverrides);
- Services.obs.removeObserver(HTTP_on_useragent_request, "http-on-useragent-request");
+ Services.obs.removeObserver(HTTP_on_modify_request, "http-on-modify-request");
},
receiveMessage: function(aMessage) {
@@ -169,7 +169,7 @@ function buildOverrides() {
}
}
-function HTTP_on_useragent_request(aSubject, aTopic, aData) {
+function HTTP_on_modify_request(aSubject, aTopic, aData) {
let channel = aSubject.QueryInterface(Ci.nsIHttpChannel);
for (let callback of gOverrideFunctions) {