Bug 1779988 - Part 1: Merge multiple ChromeUtils.defineESModuleGetters calls into one. r=Standard8

Differential Revision: https://phabricator.services.mozilla.com/D152879
This commit is contained in:
Tooru Fujisawa 2022-07-28 00:54:20 +00:00
parent 7458cb1257
commit bf159ca171
2 changed files with 1 additions and 5 deletions

View File

@ -20,15 +20,13 @@ const lazy = {};
ChromeUtils.defineESModuleGetters(lazy, {
BookmarkHTMLUtils: "resource://gre/modules/BookmarkHTMLUtils.sys.mjs",
PlacesUtils: "resource://gre/modules/PlacesUtils.sys.mjs",
});
ChromeUtils.defineModuleGetter(
lazy,
"LoginHelper",
"resource://gre/modules/LoginHelper.jsm"
);
ChromeUtils.defineESModuleGetters(lazy, {
PlacesUtils: "resource://gre/modules/PlacesUtils.sys.mjs",
});
ChromeUtils.defineModuleGetter(
lazy,
"PromiseUtils",

View File

@ -22,8 +22,6 @@ ChromeUtils.defineModuleGetter(
ChromeUtils.defineESModuleGetters(window, {
PlacesUIUtils: "resource:///modules/PlacesUIUtils.sys.mjs",
PlacesUtils: "resource://gre/modules/PlacesUtils.sys.mjs",
});
ChromeUtils.defineESModuleGetters(window, {
PlacesTransactions: "resource://gre/modules/PlacesTransactions.sys.mjs",
});