зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
7458cb1257
Коммит
bf159ca171
|
@ -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",
|
||||
|
|
|
@ -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",
|
||||
});
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче