tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

ext-browser.js (1541B)


      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 file,
      3 * You can obtain one at http://mozilla.org/MPL/2.0/. */
      4 
      5 "use strict";
      6 
      7 extensions.registerModules({
      8  devtools: {
      9    url: "chrome://browser/content/child/ext-devtools.js",
     10    scopes: ["devtools_child"],
     11    paths: [["devtools"]],
     12  },
     13  devtools_inspectedWindow: {
     14    url: "chrome://browser/content/child/ext-devtools-inspectedWindow.js",
     15    scopes: ["devtools_child"],
     16    paths: [["devtools", "inspectedWindow"]],
     17  },
     18  devtools_panels: {
     19    url: "chrome://browser/content/child/ext-devtools-panels.js",
     20    scopes: ["devtools_child"],
     21    paths: [["devtools", "panels"]],
     22  },
     23  devtools_network: {
     24    url: "chrome://browser/content/child/ext-devtools-network.js",
     25    scopes: ["devtools_child"],
     26    paths: [["devtools", "network"]],
     27  },
     28  // Because of permissions, the module name must differ from both namespaces.
     29  menusInternal: {
     30    url: "chrome://browser/content/child/ext-menus.js",
     31    scopes: ["addon_child"],
     32    paths: [["contextMenus"], ["menus"]],
     33  },
     34  menusChild: {
     35    url: "chrome://browser/content/child/ext-menus-child.js",
     36    scopes: ["addon_child", "devtools_child"],
     37    paths: [["menus"]],
     38  },
     39  omnibox: {
     40    url: "chrome://browser/content/child/ext-omnibox.js",
     41    scopes: ["addon_child"],
     42    paths: [["omnibox"]],
     43  },
     44  tabs: {
     45    url: "chrome://browser/content/child/ext-tabs.js",
     46    scopes: ["addon_child"],
     47    paths: [["tabs"]],
     48  },
     49 });