Source code

Revision control

Other Tools

1
# -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
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.xhtml
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
<script type="text/javascript">
15
var {Services} = ChromeUtils.import("resource://gre/modules/Services.jsm");
16
17
Services.scriptloader.loadSubScript("chrome://browser/content/browser.js", this);
18
Services.scriptloader.loadSubScript("chrome://browser/content/browser-places.js", this);
19
Services.scriptloader.loadSubScript("chrome://global/content/globalOverlay.js", this);
20
Services.scriptloader.loadSubScript("chrome://global/content/editMenuOverlay.js", this);
21
Services.scriptloader.loadSubScript("chrome://browser/content/utilityOverlay.js", this);
22
if (AppConstants.platform == "macosx") {
23
Services.scriptloader.loadSubScript("chrome://global/content/macWindowMenu.js", this);
24
}
25
26
</script>