tor-browser

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

global-scripts.js (1489B)


      1 /* -*- indent-tabs-mode: nil; js-indent-level: 2 -*-
      2 * This Source Code Form is subject to the terms of the Mozilla Public
      3 * License, v. 2.0. If a copy of the MPL was not distributed with this
      4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
      5 
      6 // JS files which are needed by browser.xhtml but no other top level windows to
      7 // support MacOS specific features should be loaded directly from browser-main.js
      8 // rather than this file.
      9 //
     10 // If you update this list, you may need to add a mapping within the following
     11 // file so that ESLint works correctly:
     12 // tools/lint/eslint/eslint-plugin-mozilla/lib/environments/browser-window.js
     13 
     14 // prettier-ignore
     15 // eslint-disable-next-line no-lone-blocks
     16 {
     17  Services.scriptloader.loadSubScript("chrome://browser/content/browser.js", this);
     18  Services.scriptloader.loadSubScript("chrome://browser/content/places/browserPlacesViews.js", this);
     19  Services.scriptloader.loadSubScript("chrome://browser/content/browser-places.js", this);
     20  Services.scriptloader.loadSubScript("chrome://global/content/globalOverlay.js", this);
     21  Services.scriptloader.loadSubScript("chrome://global/content/editMenuOverlay.js", this);
     22  Services.scriptloader.loadSubScript("chrome://browser/content/utilityOverlay.js", this);
     23  Services.scriptloader.loadSubScript("chrome://browser/content/browser-sets.js", this);
     24  if (AppConstants.platform == "macosx") {
     25    Services.scriptloader.loadSubScript("chrome://global/content/macWindowMenu.js", this);
     26  }
     27 }