tor-browser

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

ModuleRegistry.sys.mjs (2558B)


      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/. */
      4 
      5 export const modules = {
      6  root: { vendor: {} },
      7  "windowglobal-in-root": { vendor: {} },
      8  windowglobal: { vendor: {} },
      9 };
     10 
     11 const BASE_FOLDER =
     12  "chrome://mochitests/content/browser/remote/shared/messagehandler/test/browser/resources/modules";
     13 
     14 // eslint-disable-next-line mozilla/lazy-getter-object-name
     15 ChromeUtils.defineESModuleGetters(modules.root, {
     16  command: `${BASE_FOLDER}/root/command.sys.mjs`,
     17  event: `${BASE_FOLDER}/root/event.sys.mjs`,
     18  invalid: `${BASE_FOLDER}/root/invalid.sys.mjs`,
     19  retry: `${BASE_FOLDER}/root/retry.sys.mjs`,
     20  rootOnly: `${BASE_FOLDER}/root/rootOnly.sys.mjs`,
     21  windowglobaltoroot: `${BASE_FOLDER}/root/windowglobaltoroot.sys.mjs`,
     22 });
     23 
     24 // eslint-disable-next-line mozilla/lazy-getter-object-name
     25 ChromeUtils.defineESModuleGetters(modules.root.vendor, {
     26  vendored: `${BASE_FOLDER}/root/vendor/vendored.sys.mjs`,
     27 });
     28 
     29 // eslint-disable-next-line mozilla/lazy-getter-object-name
     30 ChromeUtils.defineESModuleGetters(modules["windowglobal-in-root"], {
     31  command: `${BASE_FOLDER}/windowglobal-in-root/command.sys.mjs`,
     32  event: `${BASE_FOLDER}/windowglobal-in-root/event.sys.mjs`,
     33 });
     34 
     35 // eslint-disable-next-line mozilla/lazy-getter-object-name
     36 ChromeUtils.defineESModuleGetters(modules["windowglobal-in-root"].vendor, {
     37  vendored: `${BASE_FOLDER}/windowglobal-in-root/vendor/vendored.sys.mjs`,
     38 });
     39 
     40 // eslint-disable-next-line mozilla/lazy-getter-object-name
     41 ChromeUtils.defineESModuleGetters(modules.windowglobal, {
     42  command: `${BASE_FOLDER}/windowglobal/command.sys.mjs`,
     43  commandwindowglobalonly: `${BASE_FOLDER}/windowglobal/commandwindowglobalonly.sys.mjs`,
     44  event: `${BASE_FOLDER}/windowglobal/event.sys.mjs`,
     45  eventemitter: `${BASE_FOLDER}/windowglobal/eventemitter.sys.mjs`,
     46  eventnointercept: `${BASE_FOLDER}/windowglobal/eventnointercept.sys.mjs`,
     47  eventonprefchange: `${BASE_FOLDER}/windowglobal/eventonprefchange.sys.mjs`,
     48  retry: `${BASE_FOLDER}/windowglobal/retry.sys.mjs`,
     49  sessiondataupdate: `${BASE_FOLDER}/windowglobal/sessiondataupdate.sys.mjs`,
     50  timeout: `${BASE_FOLDER}/windowglobal/timeout.sys.mjs`,
     51  windowglobaltoroot: `${BASE_FOLDER}/windowglobal/windowglobaltoroot.sys.mjs`,
     52 });
     53 
     54 // eslint-disable-next-line mozilla/lazy-getter-object-name
     55 ChromeUtils.defineESModuleGetters(modules.windowglobal.vendor, {
     56  vendored: `${BASE_FOLDER}/windowglobal/vendor/vendored.sys.mjs`,
     57 });