Source code

Revision control

Copy as Markdown

Other Tools

/* 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";
global.EventManager = ExtensionCommon.EventManager;
extensions.registerModules({
backgroundPage: {
scopes: ["addon_child"],
manifest: ["background"],
paths: [
["extension", "getBackgroundPage"],
["runtime", "getBackgroundPage"],
],
},
contentScripts: {
scopes: ["addon_child"],
paths: [["contentScripts"]],
},
declarativeNetRequest: {
scopes: ["addon_child"],
paths: [["declarativeNetRequest"]],
},
extension: {
scopes: ["addon_child", "content_child", "devtools_child"],
paths: [["extension"]],
},
i18n: {
scopes: ["addon_child", "content_child", "devtools_child"],
paths: [["i18n"]],
},
runtime: {
scopes: ["addon_child", "content_child", "devtools_child"],
paths: [["runtime"]],
},
scripting: {
scopes: ["addon_child"],
paths: [["scripting"]],
},
storage: {
scopes: ["addon_child", "content_child", "devtools_child"],
paths: [["storage"]],
},
test: {
scopes: ["addon_child", "content_child", "devtools_child"],
paths: [["test"]],
},
userScripts: {
scopes: ["addon_child"],
paths: [["userScripts"]],
},
userScriptsContent: {
scopes: ["content_child"],
paths: [["userScripts", "onBeforeScript"]],
},
webRequest: {
scopes: ["addon_child"],
paths: [["webRequest"]],
},
});
if (AppConstants.MOZ_BUILD_APP === "browser") {
extensions.registerModules({
identity: {
scopes: ["addon_child"],
paths: [["identity"]],
},
});
}