diff --git a/netwerk/protocol/http/UAOverridesBootstrapper.jsm b/netwerk/protocol/http/UAOverridesBootstrapper.jsm deleted file mode 100644 index 6f773f740ea8..000000000000 --- a/netwerk/protocol/http/UAOverridesBootstrapper.jsm +++ /dev/null @@ -1,33 +0,0 @@ -/* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ - -"use strict"; - -const { Services } = ChromeUtils.import("resource://gre/modules/Services.jsm"); -const { UserAgentOverrides } = ChromeUtils.import( - "resource://gre/modules/UserAgentOverrides.jsm" -); - -function UAOverridesBootstrapper() { - this.init(); -} - -UAOverridesBootstrapper.prototype = { - init: function uaob_init() { - Services.obs.addObserver(this, "profile-change-net-teardown"); - UserAgentOverrides.init(); - }, - - observe: function uaob_observe(aSubject, aTopic, aData) { - if (aTopic == "profile-change-net-teardown") { - Services.obs.removeObserver(this, "profile-change-net-teardown"); - UserAgentOverrides.uninit(); - } - }, - - QueryInterface: ChromeUtils.generateQI([Ci.nsIObserver]), - classID: Components.ID("{965b0ca8-155b-11e7-93ae-92361f002671}"), -}; - -var EXPORTED_SYMBOLS = ["UAOverridesBootstrapper"]; diff --git a/netwerk/protocol/http/components.conf b/netwerk/protocol/http/components.conf index d91e9741510e..d7af273d16ef 100644 --- a/netwerk/protocol/http/components.conf +++ b/netwerk/protocol/http/components.conf @@ -5,13 +5,6 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. Classes = [ - { - 'cid': '{965b0ca8-155b-11e7-93ae-92361f002671}', - 'contract_ids': ['@mozilla.org/network/ua-overrides-bootstrapper;1'], - 'jsm': 'resource://gre/modules/UAOverridesBootstrapper.jsm', - 'constructor': 'UAOverridesBootstrapper', - 'processes': ProcessSelector.MAIN_PROCESS_ONLY, - }, { 'cid': '{b4f96c89-5238-450c-8bda-e12c26f1d150}', 'contract_ids': ['@mozilla.org/network/well-known-opportunistic-utils;1'], diff --git a/netwerk/protocol/http/moz.build b/netwerk/protocol/http/moz.build index b2a9848aa5aa..0f759262ac86 100644 --- a/netwerk/protocol/http/moz.build +++ b/netwerk/protocol/http/moz.build @@ -141,7 +141,6 @@ LOCAL_INCLUDES += [ ] EXTRA_JS_MODULES += [ - 'UAOverridesBootstrapper.jsm', 'WellKnownOpportunisticUtils.jsm', ]