1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 /* globals AboutCompatBroker, AVAILABLE_INJECTIONS, AVAILABLE_SHIMS,
8 AVAILABLE_PIP_OVERRIDES, AVAILABLE_UA_OVERRIDES, CUSTOM_FUNCTIONS,
9 Injections, Shims, UAOverrides */
11 let injections, shims, uaOverrides;
14 injections = new Injections(AVAILABLE_INJECTIONS, CUSTOM_FUNCTIONS);
17 console.error("Injections failed to start", e);
18 injections = undefined;
22 uaOverrides = new UAOverrides(AVAILABLE_UA_OVERRIDES);
25 console.error("UA overrides failed to start", e);
26 uaOverrides = undefined;
30 shims = new Shims(AVAILABLE_SHIMS);
32 console.error("Shims failed to start", e);
37 const aboutCompatBroker = new AboutCompatBroker({
42 aboutCompatBroker.bootup();
44 console.error("about:compat broker failed to start", e);