Bug 1758474 - Implement an ESLint rule to disallow passing {} as the target parameter for ChromeUtils.import. r=Gijs,mossop,perftest-reviewers,preferences-reviewers,sparky
Differential Revision: https://phabricator.services.mozilla.com/D140517
This commit is contained in:
@@ -885,8 +885,7 @@ var FullScreen = {
|
||||
|
||||
XPCOMUtils.defineLazyGetter(FullScreen, "_permissionNotificationIDs", () => {
|
||||
let { PermissionUI } = ChromeUtils.import(
|
||||
"resource:///modules/PermissionUI.jsm",
|
||||
{}
|
||||
"resource:///modules/PermissionUI.jsm"
|
||||
);
|
||||
return (
|
||||
Object.values(PermissionUI)
|
||||
|
||||
Reference in New Issue
Block a user