mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-25 11:15:34 +00:00
Bug 1513574 - Remove UAOverridesBootstrapper r=michal
Differential Revision: https://phabricator.services.mozilla.com/D14750 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
eb1e7e00fc
commit
3373450337
@ -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"];
|
|
@ -5,13 +5,6 @@
|
|||||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||||
|
|
||||||
Classes = [
|
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}',
|
'cid': '{b4f96c89-5238-450c-8bda-e12c26f1d150}',
|
||||||
'contract_ids': ['@mozilla.org/network/well-known-opportunistic-utils;1'],
|
'contract_ids': ['@mozilla.org/network/well-known-opportunistic-utils;1'],
|
||||||
|
@ -141,7 +141,6 @@ LOCAL_INCLUDES += [
|
|||||||
]
|
]
|
||||||
|
|
||||||
EXTRA_JS_MODULES += [
|
EXTRA_JS_MODULES += [
|
||||||
'UAOverridesBootstrapper.jsm',
|
|
||||||
'WellKnownOpportunisticUtils.jsm',
|
'WellKnownOpportunisticUtils.jsm',
|
||||||
]
|
]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user