diff options
author | New Tobin Paradigm <email@mattatobin.com> | 2018-05-14 18:29:41 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-14 18:29:41 -0400 |
commit | 626419cbe2a789760d45dc87fcff1a7ad221d04d (patch) | |
tree | d3ff630ec350e3b589e749f7fc83b18151c8affa /netwerk/protocol/http/UserAgentOverrides.jsm | |
parent | 4b4b4a59cac398083e4ee224a1b90c98c26c1dfa (diff) | |
parent | 1c9d6206cb04027614d6857786d1d82767664b45 (diff) | |
download | UXP-626419cbe2a789760d45dc87fcff1a7ad221d04d.tar UXP-626419cbe2a789760d45dc87fcff1a7ad221d04d.tar.gz UXP-626419cbe2a789760d45dc87fcff1a7ad221d04d.tar.lz UXP-626419cbe2a789760d45dc87fcff1a7ad221d04d.tar.xz UXP-626419cbe2a789760d45dc87fcff1a7ad221d04d.zip |
Merge pull request #356 from JustOff/PR_ssuao_revert_1148544
Revert incorrect UAO optimization that broke SSUAO
Diffstat (limited to 'netwerk/protocol/http/UserAgentOverrides.jsm')
-rw-r--r-- | netwerk/protocol/http/UserAgentOverrides.jsm | 8 |
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) { |