Bug 1510579 - Load scripts in global-scripts.inc the same way browser.xul does. r=Standard8

Differential Revision: https://phabricator.services.mozilla.com/D13237
This commit is contained in:
Dão Gottwald
2018-11-28 16:13:16 +00:00
parent ebf559fc49
commit 7d8b412c97
2 changed files with 8 additions and 11 deletions

View File

@@ -18,15 +18,12 @@ xmlns="http://www.w3.org/1999/xhtml"
>
Components.utils.import("resource://gre/modules/Services.jsm");
for (let script of [
"chrome://browser/content/browser.js",
"chrome://browser/content/browser-places.js",
"chrome://global/content/globalOverlay.js",
"chrome://browser/content/utilityOverlay.js",
Services.scriptloader.loadSubScript("chrome://browser/content/browser.js", this);
Services.scriptloader.loadSubScript("chrome://browser/content/browser-places.js", this);
Services.scriptloader.loadSubScript("chrome://global/content/globalOverlay.js", this);
Services.scriptloader.loadSubScript("chrome://browser/content/utilityOverlay.js", this);
#ifdef XP_MACOSX
"chrome://global/content/macWindowMenu.js",
Services.scriptloader.loadSubScript("chrome://global/content/macWindowMenu.js", this);
#endif
]) {
Services.scriptloader.loadSubScript(script, this);
}
</script>