From f03f68a187cad017819657991b2fc67817b9887e Mon Sep 17 00:00:00 2001 From: Magnus Melin Date: Sat, 11 Nov 2023 12:49:54 +0200 Subject: [PATCH] Bug 1863204 - Remove unnecessary calls to Cu.importGlobalProperties for fetch/crypto (webidl names are automatically imported). r=eslint --- mail/base/test/unit/test_devtools_url.js | 1 - mailnews/addrbook/test/unit/head_cardDAV.js | 1 - mailnews/news/test/unit/test_internalUris.js | 2 -- 3 files changed, 4 deletions(-) diff --git a/mail/base/test/unit/test_devtools_url.js b/mail/base/test/unit/test_devtools_url.js index d85b3ed166..945ac1ee03 100644 --- a/mail/base/test/unit/test_devtools_url.js +++ b/mail/base/test/unit/test_devtools_url.js @@ -4,7 +4,6 @@ * MailGlue that observes command-line-startup will not be working properly. */ -Cu.importGlobalProperties(["fetch"]); var { MailGlue } = ChromeUtils.import("resource:///modules/MailGlue.jsm"); add_task(async () => { diff --git a/mailnews/addrbook/test/unit/head_cardDAV.js b/mailnews/addrbook/test/unit/head_cardDAV.js index c27ffd5a98..d4a626f3cd 100644 --- a/mailnews/addrbook/test/unit/head_cardDAV.js +++ b/mailnews/addrbook/test/unit/head_cardDAV.js @@ -11,7 +11,6 @@ const { CardDAVServer } = ChromeUtils.import( const { TestUtils } = ChromeUtils.importESModule( "resource://testing-common/TestUtils.sys.mjs" ); -Cu.importGlobalProperties(["fetch"]); do_get_profile(); diff --git a/mailnews/news/test/unit/test_internalUris.js b/mailnews/news/test/unit/test_internalUris.js index aee1df94d8..bb580d29e8 100644 --- a/mailnews/news/test/unit/test_internalUris.js +++ b/mailnews/news/test/unit/test_internalUris.js @@ -6,8 +6,6 @@ * If you manually generate a news URI somewhere, please add it to this test. */ -Cu.importGlobalProperties(["crypto"]); - /* import-globals-from ../../../test/resources/alertTestUtils.js */ load("../../../resources/alertTestUtils.js");