summaryrefslogtreecommitdiffstats
path: root/browser/components/extensions/child/ext-browser.js
blob: 790b2d4bd0a4f20d4c1cb60079beb1a47bcac0c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/* 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";

extensions.registerModules({
  devtools: {
    url: "chrome://browser/content/child/ext-devtools.js",
    scopes: ["devtools_child"],
    paths: [["devtools"]],
  },
  devtools_inspectedWindow: {
    url: "chrome://browser/content/child/ext-devtools-inspectedWindow.js",
    scopes: ["devtools_child"],
    paths: [["devtools", "inspectedWindow"]],
  },
  devtools_panels: {
    url: "chrome://browser/content/child/ext-devtools-panels.js",
    scopes: ["devtools_child"],
    paths: [["devtools", "panels"]],
  },
  devtools_network: {
    url: "chrome://browser/content/child/ext-devtools-network.js",
    scopes: ["devtools_child"],
    paths: [["devtools", "network"]],
  },
  // Because of permissions, the module name must differ from both namespaces.
  menusInternal: {
    url: "chrome://browser/content/child/ext-menus.js",
    scopes: ["addon_child"],
    paths: [["contextMenus"], ["menus"]],
  },
  menusChild: {
    url: "chrome://browser/content/child/ext-menus-child.js",
    scopes: ["addon_child", "devtools_child"],
    paths: [["menus"]],
  },
  omnibox: {
    url: "chrome://browser/content/child/ext-omnibox.js",
    scopes: ["addon_child"],
    paths: [["omnibox"]],
  },
  tabs: {
    url: "chrome://browser/content/child/ext-tabs.js",
    scopes: ["addon_child"],
    paths: [["tabs"]],
  },
});