Bug 1690610 [wpt PR 27463] - Fetch: redirects to data: URLs, a=testonly
[gecko.git] / .eslintrc.js
blobc08a1f659e07daea48d998e7c3a75a9b28a500e3
1 /* This Source Code Form is subject to the terms of the Mozilla Public
2  * License, v. 2.0. If a copy of the MPL was not distributed with this
3  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 "use strict";
7 const xpcshellTestConfig = require("eslint-plugin-mozilla/lib/configs/xpcshell-test.js");
8 const browserTestConfig = require("eslint-plugin-mozilla/lib/configs/browser-test.js");
9 const mochitestTestConfig = require("eslint-plugin-mozilla/lib/configs/mochitest-test.js");
10 const chromeTestConfig = require("eslint-plugin-mozilla/lib/configs/chrome-test.js");
11 const fs = require("fs");
12 const path = require("path");
14 /**
15  * Some configurations have overrides, which can't be specified within overrides,
16  * so we need to remove them.
17  */
18 function removeOverrides(config) {
19   config = { ...config };
20   delete config.overrides;
21   return config;
24 const xpcshellTestPaths = ["**/test*/unit*/", "**/test*/xpcshell/"];
26 const browserTestPaths = ["**/test*/**/browser*/"];
28 const mochitestTestPaths = [
29   // Note: we do not want to match testing/mochitest as that would apply
30   // too many globals for that directory.
31   "**/test/mochitest/",
32   "**/tests/mochitest/",
33   "**/test/mochitests/",
34   "testing/mochitest/tests/SimpleTest/",
35   "testing/mochitest/tests/Harness_sanity/",
38 const chromeTestPaths = ["**/test*/chrome/"];
40 const ignorePatterns = [
41   ...fs
42     .readFileSync(
43       path.join(__dirname, "tools", "rewriting", "ThirdPartyPaths.txt")
44     )
45     .toString("utf-8")
46     .split("\n"),
47   ...fs
48     .readFileSync(
49       path.join(__dirname, "devtools", "client", "debugger", ".eslintignore")
50     )
51     .toString("utf-8")
52     .split("\n")
53     .filter(p => p && !p.startsWith("#"))
54     .map(p => `devtools/client/debugger/${p}`),
57 module.exports = {
58   parser: "babel-eslint",
59   parserOptions: {
60     sourceType: "script",
61     babelOptions: {
62       configFile: path.join(__dirname, ".babel-eslint.rc.js"),
63     },
64   },
65   ignorePatterns,
66   // Ignore eslint configurations in parent directories.
67   root: true,
68   // New rules and configurations should generally be added in
69   // tools/lint/eslint/eslint-plugin-mozilla/lib/configs/recommended.js to
70   // allow external repositories that use the plugin to pick them up as well.
71   extends: ["plugin:mozilla/recommended"],
72   plugins: ["mozilla"],
73   overrides: [
74     {
75       // All .eslintrc.js files are in the node environment, so turn that
76       // on here.
77       // https://github.com/eslint/eslint/issues/13008
78       files: [".eslintrc.js"],
79       env: {
80         node: true,
81         browser: false,
82       },
83     },
84     {
85       files: [
86         "*.html",
87         "*.xhtml",
88         "*.xul",
89         "*.xml",
90         "js/src/builtin/**/*.js",
91         "js/src/shell/**/*.js",
92       ],
93       rules: {
94         // Curly brackets are required for all the tree via recommended.js,
95         // however these files aren't auto-fixable at the moment.
96         curly: "off",
97       },
98     },
99     {
100       // TODO: Bug 1515949. Enable no-undef for gfx/
101       files: "gfx/layers/apz/test/mochitest/**",
102       rules: {
103         "no-undef": "off",
104       },
105     },
106     {
107       ...removeOverrides(xpcshellTestConfig),
108       files: xpcshellTestPaths.map(path => `${path}**`),
109       excludedFiles: "devtools/**",
110     },
111     {
112       // If it is an xpcshell head file, we turn off global unused variable checks, as it
113       // would require searching the other test files to know if they are used or not.
114       // This would be expensive and slow, and it isn't worth it for head files.
115       // We could get developers to declare as exported, but that doesn't seem worth it.
116       files: xpcshellTestPaths.map(path => `${path}head*.js`),
117       rules: {
118         "no-unused-vars": [
119           "error",
120           {
121             args: "none",
122             vars: "local",
123           },
124         ],
125       },
126     },
127     {
128       ...browserTestConfig,
129       files: browserTestPaths.map(path => `${path}**`),
130       excludedFiles: "devtools/**",
131     },
132     {
133       ...removeOverrides(mochitestTestConfig),
134       files: mochitestTestPaths.map(path => `${path}**`),
135       excludedFiles: [
136         "devtools/**",
137         "security/manager/ssl/tests/mochitest/browser/**",
138       ],
139     },
140     {
141       ...removeOverrides(chromeTestConfig),
142       files: chromeTestPaths.map(path => `${path}**`),
143       excludedFiles: ["devtools/**"],
144     },
145     {
146       env: {
147         // Ideally we wouldn't be using the simpletest env here, but our uses of
148         // js files mean we pick up everything from the global scope, which could
149         // be any one of a number of html files. So we just allow the basics...
150         "mozilla/simpletest": true,
151       },
152       files: [
153         ...mochitestTestPaths.map(path => `${path}/**/*.js`),
154         ...chromeTestPaths.map(path => `${path}/**/*.js`),
155       ],
156     },
157     {
158       files: [
159         "netwerk/cookie/test/browser/**",
160         "netwerk/test/browser/**",
161         "netwerk/test/mochitests/**",
162         "netwerk/test/unit*/**",
163       ],
164       rules: {
165         "mozilla/no-arbitrary-setTimeout": "off",
166         "mozilla/no-define-cc-etc": "off",
167         "mozilla/use-services": "off",
168         "consistent-return": "off",
169         "no-eval": "off",
170         "no-global-assign": "off",
171         "no-nested-ternary": "off",
172         "no-redeclare": "off",
173         "no-shadow": "off",
174         "no-throw-literal": "off",
175       },
176     },
177     {
178       files: ["layout/**"],
179       rules: {
180         "object-shorthand": "off",
181         "mozilla/avoid-removeChild": "off",
182         "mozilla/consistent-if-bracing": "off",
183         "mozilla/reject-importGlobalProperties": "off",
184         "mozilla/no-arbitrary-setTimeout": "off",
185         "mozilla/no-define-cc-etc": "off",
186         "mozilla/use-chromeutils-generateqi": "off",
187         "mozilla/use-default-preference-values": "off",
188         "mozilla/use-includes-instead-of-indexOf": "off",
189         "mozilla/use-services": "off",
190         "mozilla/use-ownerGlobal": "off",
191         complexity: "off",
192         "consistent-return": "off",
193         "no-array-constructor": "off",
194         "no-caller": "off",
195         "no-cond-assign": "off",
196         "no-extra-boolean-cast": "off",
197         "no-eval": "off",
198         "no-func-assign": "off",
199         "no-global-assign": "off",
200         "no-implied-eval": "off",
201         "no-lonely-if": "off",
202         "no-nested-ternary": "off",
203         "no-new-wrappers": "off",
204         "no-redeclare": "off",
205         "no-restricted-globals": "off",
206         "no-return-await": "off",
207         "no-sequences": "off",
208         "no-throw-literal": "off",
209         "no-useless-concat": "off",
210         "no-undef": "off",
211         "no-unreachable": "off",
212         "no-unsanitized/method": "off",
213         "no-unsanitized/property": "off",
214         "no-unsafe-negation": "off",
215         "no-unused-vars": "off",
216         "no-useless-return": "off",
217       },
218     },
219     {
220       files: [
221         "dom/animation/**",
222         "dom/base/test/*.*",
223         "dom/base/test/unit/test_serializers_entities*.js",
224         "dom/base/test/unit_ipc/**",
225         "dom/base/test/jsmodules/**",
226         "dom/base/*.*",
227         "dom/canvas/**",
228         "dom/encoding/**",
229         "dom/events/**",
230         "dom/fetch/**",
231         "dom/file/**",
232         "dom/html/**",
233         "dom/jsurl/**",
234         "dom/media/tests/**",
235         "dom/media/webaudio/**",
236         "dom/media/webrtc/tests/**",
237         "dom/media/webspeech/**",
238         "dom/messagechannel/**",
239         "dom/midi/**",
240         "dom/network/**",
241         "dom/payments/**",
242         "dom/performance/**",
243         "dom/permission/**",
244         "dom/quota/**",
245         "dom/security/test/cors/**",
246         "dom/security/test/csp/**",
247         "dom/security/test/general/**",
248         "dom/security/test/https-only/**",
249         "dom/security/test/mixedcontentblocker/**",
250         "dom/security/test/sri/**",
251         "dom/security/test/referrer-policy/**",
252         "dom/serviceworkers/**",
253         "dom/smil/**",
254         "dom/tests/mochitest/**",
255         "dom/u2f/**",
256         "dom/vr/**",
257         "dom/webauthn/**",
258         "dom/webgpu/**",
259         "dom/websocket/**",
260         "dom/workers/**",
261         "dom/worklet/**",
262         "dom/xml/**",
263         "dom/xslt/**",
264         "dom/xul/**",
265         "dom/ipc/test.xhtml",
266       ],
267       rules: {
268         "consistent-return": "off",
269         "mozilla/avoid-removeChild": "off",
270         "mozilla/consistent-if-bracing": "off",
271         "mozilla/no-arbitrary-setTimeout": "off",
272         "mozilla/no-compare-against-boolean-literals": "off",
273         "mozilla/no-define-cc-etc": "off",
274         "mozilla/reject-importGlobalProperties": "off",
275         "mozilla/use-cc-etc": "off",
276         "mozilla/use-chromeutils-generateqi": "off",
277         "mozilla/use-chromeutils-import": "off",
278         "mozilla/use-includes-instead-of-indexOf": "off",
279         "mozilla/use-ownerGlobal": "off",
280         "mozilla/use-services": "off",
281         "no-array-constructor": "off",
282         "no-caller": "off",
283         "no-cond-assign": "off",
284         "no-control-regex": "off",
285         "no-debugger": "off",
286         "no-else-return": "off",
287         "no-empty": "off",
288         "no-eval": "off",
289         "no-func-assign": "off",
290         "no-global-assign": "off",
291         "no-implied-eval": "off",
292         "no-lone-blocks": "off",
293         "no-lonely-if": "off",
294         "no-nested-ternary": "off",
295         "no-new-object": "off",
296         "no-new-wrappers": "off",
297         "no-octal": "off",
298         "no-redeclare": "off",
299         "no-return-await": "off",
300         "no-restricted-globals": "off",
301         "no-self-assign": "off",
302         "no-self-compare": "off",
303         "no-sequences": "off",
304         "no-shadow": "off",
305         "no-shadow-restricted-names": "off",
306         "no-sparse-arrays": "off",
307         "no-throw-literal": "off",
308         "no-unreachable": "off",
309         "no-unsanitized/method": "off",
310         "no-unsanitized/property": "off",
311         "no-undef": "off",
312         "no-unused-vars": "off",
313         "no-useless-call": "off",
314         "no-useless-concat": "off",
315         "no-useless-return": "off",
316         "no-with": "off",
317       },
318     },
319     {
320       files: [
321         "testing/mochitest/browser-harness.xhtml",
322         "testing/mochitest/chrome/test_chromeGetTestFile.xhtml",
323         "testing/mochitest/chrome/test_sanityEventUtils.xhtml",
324         "testing/mochitest/chrome/test_sanityException.xhtml",
325         "testing/mochitest/chrome/test_sanityException2.xhtml",
326         "testing/mochitest/harness.xhtml",
327       ],
328       rules: {
329         "dot-notation": "off",
330         "object-shorthand": "off",
331         "mozilla/use-services": "off",
332         "mozilla/no-compare-against-boolean-literals": "off",
333         "mozilla/no-useless-parameters": "off",
334         "mozilla/no-useless-removeEventListener": "off",
335         "mozilla/use-cc-etc": "off",
336         "consistent-return": "off",
337         "no-fallthrough": "off",
338         "no-nested-ternary": "off",
339         "no-redeclare": "off",
340         "no-sequences": "off",
341         "no-shadow": "off",
342         "no-throw-literal": "off",
343         "no-undef": "off",
344         "no-unsanitized/property": "off",
345         "no-unused-vars": "off",
346         "no-useless-call": "off",
347       },
348     },
349     {
350       files: [
351         "docshell/test/chrome/bug113934_window.xhtml",
352         "docshell/test/chrome/bug215405_window.xhtml",
353         "docshell/test/chrome/bug293235_window.xhtml",
354         "docshell/test/chrome/bug294258_window.xhtml",
355         "docshell/test/chrome/bug298622_window.xhtml",
356         "docshell/test/chrome/bug301397_window.xhtml",
357         "docshell/test/chrome/bug303267_window.xhtml",
358         "docshell/test/chrome/bug311007_window.xhtml",
359         "docshell/test/chrome/bug321671_window.xhtml",
360         "docshell/test/chrome/bug360511_window.xhtml",
361         "docshell/test/chrome/bug396519_window.xhtml",
362         "docshell/test/chrome/bug396649_window.xhtml",
363         "docshell/test/chrome/bug449778_window.xhtml",
364         "docshell/test/chrome/bug449780_window.xhtml",
365         "docshell/test/chrome/bug582176_window.xhtml",
366         "docshell/test/chrome/bug662200_window.xhtml",
367         "docshell/test/chrome/bug690056_window.xhtml",
368         "docshell/test/chrome/bug89419_window.xhtml",
369         "docshell/test/chrome/mozFrameType_window.xhtml",
370         "docshell/test/chrome/test_bug453650.xhtml",
371         "docshell/test/chrome/test_bug454235.xhtml",
372         "docshell/test/chrome/test_bug565388.xhtml",
373         "docshell/test/chrome/test_bug608669.xhtml",
374         "docshell/test/chrome/test_bug789773.xhtml",
375         "docshell/test/chrome/test_bug846906.xhtml",
376         "docshell/test/chrome/test_docRedirect.xhtml",
377         "docshell/test/chrome/test_principalInherit.xhtml",
378         "docshell/test/chrome/test_viewsource_forbidden_in_iframe.xhtml",
379       ],
380       rules: {
381         "dot-notation": "off",
382         "no-global-assign": "off",
383         "no-octal": "off",
384         "object-shorthand": "off",
385         "mozilla/consistent-if-bracing": "off",
386         "mozilla/no-compare-against-boolean-literals": "off",
387         "mozilla/no-useless-parameters": "off",
388         "mozilla/no-useless-removeEventListener": "off",
389         "mozilla/use-cc-etc": "off",
390         "mozilla/use-services": "off",
391         "mozilla/use-chromeutils-generateqi": "off",
392         "consistent-return": "off",
393         "no-delete-var": "off",
394         "no-redeclare": "off",
395         "no-sequences": "off",
396         "no-shadow": "off",
397         "no-undef": "off",
398         "no-unused-vars": "off",
399         "no-useless-call": "off",
400       },
401     },
402     {
403       files: [
404         "dom/base/test/chrome/file_bug1139964.xhtml",
405         "dom/base/test/chrome/file_bug549682.xhtml",
406         "dom/base/test/chrome/file_bug616841.xhtml",
407         "dom/base/test/chrome/file_bug990812-1.xhtml",
408         "dom/base/test/chrome/file_bug990812-2.xhtml",
409         "dom/base/test/chrome/file_bug990812-3.xhtml",
410         "dom/base/test/chrome/file_bug990812-4.xhtml",
411         "dom/base/test/chrome/file_bug990812-5.xhtml",
412         "dom/base/test/chrome/file_bug990812.xhtml",
413         "dom/base/test/chrome/test_bug1098074_throw_from_ReceiveMessage.xhtml",
414         "dom/base/test/chrome/test_bug339494.xhtml",
415         "dom/base/test/chrome/test_bug429785.xhtml",
416         "dom/base/test/chrome/test_bug467123.xhtml",
417         "dom/base/test/chrome/test_bug683852.xhtml",
418         "dom/base/test/chrome/test_bug780529.xhtml",
419         "dom/base/test/chrome/test_bug800386.xhtml",
420         "dom/base/test/chrome/test_bug884693.xhtml",
421         "dom/base/test/chrome/test_document-element-inserted.xhtml",
422         "dom/base/test/chrome/test_domparsing.xhtml",
423         "dom/base/test/chrome/test_fileconstructor.xhtml",
424         "dom/base/test/chrome/title_window.xhtml",
425         "dom/base/test/chrome/window_nsITextInputProcessor.xhtml",
426         "dom/base/test/chrome/window_swapFrameLoaders.xhtml",
427         "dom/base/test/test_domrequesthelper.xhtml",
428         "dom/bindings/test/test_bug1123516_maplikesetlikechrome.xhtml",
429         "dom/console/tests/test_jsm.xhtml",
430         "dom/events/test/test_bug1412775.xhtml",
431         "dom/events/test/test_bug336682_2.xhtml",
432         "dom/events/test/test_bug415498.xhtml",
433         "dom/events/test/test_bug602962.xhtml",
434         "dom/events/test/test_bug617528.xhtml",
435         "dom/events/test/test_bug679494.xhtml",
436         "dom/indexedDB/test/test_globalObjects_chrome.xhtml",
437         "dom/indexedDB/test/test_wrappedArray.xhtml",
438         "dom/ipc/test.xhtml",
439         "dom/ipc/tests/test_process_error.xhtml",
440         "dom/notification/test/chrome/test_notification_system_principal.xhtml",
441         "dom/security/test/general/test_bug1277803.xhtml",
442         "dom/serviceworkers/test/test_serviceworkerinfo.xhtml",
443         "dom/serviceworkers/test/test_serviceworkermanager.xhtml",
444         "dom/system/tests/test_constants.xhtml",
445         "dom/tests/mochitest/chrome/DOMWindowCreated_chrome.xhtml",
446         "dom/tests/mochitest/chrome/MozDomFullscreen_chrome.xhtml",
447         "dom/tests/mochitest/chrome/sizemode_attribute.xhtml",
448         "dom/tests/mochitest/chrome/test_cyclecollector.xhtml",
449         "dom/tests/mochitest/chrome/test_docshell_swap.xhtml",
450         "dom/tests/mochitest/chrome/window_focus.xhtml",
451         "dom/url/tests/test_bug883784.xhtml",
452         "dom/workers/test/test_WorkerDebugger.xhtml",
453         "dom/workers/test/test_WorkerDebugger_console.xhtml",
454         "dom/workers/test/test_fileReadSlice.xhtml",
455         "dom/workers/test/test_fileReaderSync.xhtml",
456         "dom/workers/test/test_fileSlice.xhtml",
457       ],
458       rules: {
459         "mozilla/no-useless-parameters": "off",
460         "mozilla/no-useless-removeEventListener": "off",
461         "mozilla/use-chromeutils-generateqi": "off",
462         "mozilla/use-services": "off",
463         complexity: "off",
464         "no-array-constructor": "off",
465         "no-caller": "off",
466         "no-empty": "off",
467         "no-eval": "off",
468         "no-lone-blocks": "off",
469         "no-octal": "off",
470         "no-redeclare": "off",
471         "no-shadow": "off",
472         "no-throw-literal": "off",
473         "no-undef": "off",
474         "no-unsanitized/method": "off",
475         "no-unused-vars": "off",
476         "no-useless-return": "off",
477         "object-shorthand": "off",
478       },
479     },
480     {
481       files: [
482         "accessible/**",
483         "devtools/**",
484         "dom/**",
485         "docshell/**",
486         "editor/libeditor/tests/**",
487         "editor/spellchecker/tests/test_bug338427.html",
488         "gfx/**",
489         "image/test/browser/browser_image.js",
490         "js/src/builtin/**",
491         "layout/**",
492         "mobile/android/**",
493         "modules/**",
494         "netwerk/**",
495         "remote/**",
496         "security/manager/**",
497         "services/**",
498         "storage/test/unit/test_vacuum.js",
499         "taskcluster/docker/periodic-updates/scripts/**",
500         "testing/**",
501         "tools/**",
502         "widget/tests/test_assign_event_data.html",
503       ],
504       rules: {
505         "mozilla/prefer-boolean-length-check": "off",
506       },
507     },
508     {
509       // TODO: Bug 1609271 Fix all violations for ChromeUtils.import(..., null)
510       files: [
511         "browser/base/content/test/forms/head.js",
512         "browser/base/content/test/general/browser_datachoices_notification.js",
513         "browser/base/content/test/plugins/head.js",
514         "browser/base/content/test/sync/browser_fxa_web_channel.js",
515         "browser/base/content/test/webextensions/head.js",
516         "browser/components/customizableui/test/browser_1042100_default_placements_update.js",
517         "browser/components/customizableui/test/browser_1096763_seen_widgets_post_reset.js",
518         "browser/components/customizableui/test/browser_1161838_inserted_new_default_buttons.js",
519         "browser/components/customizableui/test/browser_1686523_hide_home_button.js",
520         "browser/components/customizableui/test/browser_989338_saved_placements_not_resaved.js",
521         "browser/components/customizableui/test/browser_currentset_post_reset.js",
522         "browser/components/customizableui/test/browser_panel_keyboard_navigation.js",
523         "browser/components/enterprisepolicies/tests/browser/browser_policies_setAndLockPref_API.js",
524         "browser/components/enterprisepolicies/tests/browser/head.js",
525         "browser/components/enterprisepolicies/tests/xpcshell/head.js",
526         "browser/components/enterprisepolicies/tests/xpcshell/test_proxy.js",
527         "browser/components/enterprisepolicies/tests/xpcshell/test_runOnce_helper.js",
528         "browser/components/extensions/test/browser/browser_ext_browserAction_context.js",
529         "browser/components/extensions/test/browser/browser_ext_browserAction_popup.js",
530         "browser/components/extensions/test/browser/browser_ext_browserAction_popup_preload.js",
531         "browser/components/extensions/test/browser/browser_ext_currentWindow.js",
532         "browser/components/extensions/test/browser/browser_ext_getViews.js",
533         "browser/components/extensions/test/browser/browser_ext_management.js",
534         "browser/components/extensions/test/browser/browser_ext_menus_events.js",
535         "browser/components/extensions/test/browser/browser_ext_openPanel.js",
536         "browser/components/extensions/test/browser/browser_ext_pageAction_context.js",
537         "browser/components/extensions/test/browser/browser_ext_pageAction_popup.js",
538         "browser/components/extensions/test/browser/browser_ext_pageAction_show_matches.js",
539         "browser/components/extensions/test/browser/browser_ext_sessions_getRecentlyClosed_private.js",
540         "browser/components/extensions/test/browser/browser_ext_sessions_restore.js",
541         "browser/components/extensions/test/browser/browser_ext_tabs_audio.js",
542         "browser/components/extensions/test/browser/browser_ext_tabs_create_url.js",
543         "browser/components/extensions/test/browser/browser_ext_tabs_duplicate.js",
544         "browser/components/extensions/test/browser/browser_ext_tabs_newtab_private.js",
545         "browser/components/extensions/test/browser/browser_ext_tabs_removeCSS.js",
546         "browser/components/extensions/test/browser/browser_ext_tabs_zoom.js",
547         "browser/components/extensions/test/browser/browser_ext_windows.js",
548         "browser/components/extensions/test/browser/browser_ext_windows_events.js",
549         "browser/components/extensions/test/browser/head.js",
550         "browser/components/extensions/test/browser/head_webNavigation.js",
551         "browser/components/extensions/test/xpcshell/test_ext_url_overrides_newtab.js",
552         "browser/components/migration/tests/unit/test_Edge_db_migration.js",
553         "browser/components/preferences/tests/browser_contentblocking.js",
554         "browser/components/translation/test/unit/test_cld2.js",
555         "browser/components/urlbar/tests/ext/browser/update/browser_getBrowserUpdateStatus_updateDisabledByPolicy.js",
556         "browser/extensions/formautofill/test/unit/head.js",
557         "browser/extensions/formautofill/test/unit/test_creditCardRecords.js",
558         "browser/extensions/formautofill/test/unit/test_migrateRecords.js",
559         "browser/extensions/formautofill/test/unit/test_storage_remove.js",
560         "browser/extensions/formautofill/test/unit/test_storage_tombstones.js",
561         "browser/extensions/formautofill/test/unit/test_sync.js",
562         "browser/extensions/formautofill/test/unit/test_transformFields.js",
563         "browser/extensions/report-site-issue/experimentalAPIs/pageActionExtras.js",
564         "browser/extensions/report-site-issue/test/browser/head.js",
565         "devtools/client/aboutdebugging/test/browser/browser_aboutdebugging_addons_debug_popup.js",
566         "dom/ipc/tests/browser_memory_distribution_telemetry.js",
567         "dom/push/test/xpcshell/head.js",
568         "dom/push/test/xpcshell/test_broadcast_success.js",
569         "dom/push/test/xpcshell/test_crypto.js",
570         "gfx/layers/apz/test/mochitest/browser_test_select_zoom.js",
571         "security/manager/ssl/RemoteSecuritySettings.jsm",
572         "security/manager/ssl/tests/unit/test_der.js",
573         "security/manager/ssl/X509.jsm",
574         "services/common/tests/unit/head_helpers.js",
575         "services/common/tests/unit/test_uptake_telemetry.js",
576         "services/fxaccounts/tests/xpcshell/test_accounts.js",
577         "services/fxaccounts/tests/xpcshell/test_accounts_device_registration.js",
578         "services/fxaccounts/tests/xpcshell/test_loginmgr_storage.js",
579         "services/fxaccounts/tests/xpcshell/test_oauth_token_storage.js",
580         "services/fxaccounts/tests/xpcshell/test_oauth_tokens.js",
581         "services/fxaccounts/tests/xpcshell/test_web_channel.js",
582         "services/sync/modules-testing/utils.js",
583         "services/sync/tests/unit/test_doctor.js",
584         "services/sync/tests/unit/test_postqueue.js",
585         "testing/marionette/components/marionette.js",
586         "testing/marionette/driver.js",
587         "testing/marionette/format.js",
588         "testing/marionette/server.js",
589         "testing/marionette/test/unit/test_prefs.js",
590         "testing/mochitest/browser-test.js",
591         "testing/mochitest/BrowserTestUtils/content/content-task.js",
592         "testing/xpcshell/head.js",
593         "toolkit/components/cloudstorage/tests/unit/test_cloudstorage.js",
594         "toolkit/components/crashes/tests/xpcshell/test_crash_manager.js",
595         "toolkit/components/crashes/tests/xpcshell/test_crash_service.js",
596         "toolkit/components/crashes/tests/xpcshell/test_crash_store.js",
597         "toolkit/components/enterprisepolicies/tests/browser/head.js",
598         "toolkit/components/enterprisepolicies/tests/EnterprisePolicyTesting.jsm",
599         "toolkit/components/enterprisepolicies/tests/xpcshell/head.js",
600         "toolkit/components/extensions/ExtensionPreferencesManager.jsm",
601         "toolkit/components/extensions/ExtensionXPCShellUtils.jsm",
602         "toolkit/components/extensions/ExtensionXPCShellUtils.jsm",
603         "toolkit/components/extensions/parent/ext-management.js",
604         "toolkit/components/extensions/test/mochitest/test_ext_contentscript_cache.html",
605         "toolkit/components/extensions/test/xpcshell/head_native_messaging.js",
606         "toolkit/components/extensions/test/xpcshell/test_ext_api_permissions.js",
607         "toolkit/components/extensions/test/xpcshell/test_ext_background_early_shutdown.js",
608         "toolkit/components/extensions/test/xpcshell/test_ext_background_teardown.js",
609         "toolkit/components/extensions/test/xpcshell/test_ext_contentscript_context.js",
610         "toolkit/components/extensions/test/xpcshell/test_ext_contentscript_context_isolation.js",
611         "toolkit/components/extensions/test/xpcshell/test_ext_contentscript_teardown.js",
612         "toolkit/components/extensions/test/xpcshell/test_ext_contexts_gc.js",
613         "toolkit/components/extensions/test/xpcshell/test_ext_privacy_disable.js",
614         "toolkit/components/extensions/test/xpcshell/test_ext_schemas_interactive.js",
615         "toolkit/components/extensions/test/xpcshell/test_ext_shutdown_cleanup.js",
616         "toolkit/components/extensions/test/xpcshell/test_ext_storage_sync_kinto.js",
617         "toolkit/components/extensions/test/xpcshell/test_ext_storage_sync_kinto_crypto.js",
618         "toolkit/components/extensions/test/xpcshell/test_ext_tab_teardown.js",
619         "toolkit/components/extensions/test/xpcshell/test_native_manifests.js",
620         "toolkit/components/featuregates/test/unit/test_FeatureGate.js",
621         "toolkit/components/mozintl/mozIntl.jsm",
622         "toolkit/components/normandy/test/browser/browser_actions_ShowHeartbeatAction.js",
623         "toolkit/components/osfile/modules/osfile_async_front.jsm",
624         "toolkit/components/osfile/modules/osfile_native.jsm",
625         "toolkit/components/osfile/tests/xpcshell/test_osfile_kill.js",
626         "toolkit/components/passwordmgr/test/unit/test_getFormFields.js",
627         "toolkit/components/passwordmgr/test/unit/test_getPasswordFields.js",
628         "toolkit/components/passwordmgr/test/unit/test_getUserNameAndPasswordFields.js",
629         "toolkit/components/processsingleton/MainProcessSingleton.jsm",
630         "toolkit/components/telemetry/tests/unit/head.js",
631         "toolkit/components/telemetry/tests/unit/test_EcosystemTelemetry.js",
632         "toolkit/components/telemetry/tests/unit/test_EventPing.js",
633         "toolkit/components/telemetry/tests/unit/test_HealthPing.js",
634         "toolkit/components/telemetry/tests/unit/test_PingAPI.js",
635         "toolkit/components/telemetry/tests/unit/test_PrioPing.js",
636         "toolkit/components/telemetry/tests/unit/test_TelemetryController_idle.js",
637         "toolkit/components/telemetry/tests/unit/test_TelemetryReportingPolicy.js",
638         "toolkit/components/telemetry/tests/unit/test_TelemetrySendOldPings.js",
639         "toolkit/components/telemetry/tests/unit/test_TelemetrySession.js",
640         "toolkit/modules/subprocess/test/xpcshell/test_subprocess.js",
641         "toolkit/modules/tests/xpcshell/test_GMPInstallManager.js",
642         "toolkit/mozapps/extensions/internal/AddonTestUtils.jsm",
643         "toolkit/mozapps/extensions/test/browser/browser_gmpProvider.js",
644         "toolkit/mozapps/extensions/test/xpcshell/head_addons.js",
645         "toolkit/mozapps/extensions/test/xpcshell/rs-blocklist/test_blocklist_clients.js",
646         "toolkit/mozapps/extensions/test/xpcshell/rs-blocklist/test_blocklist_regexp_split.js",
647         "toolkit/mozapps/extensions/test/xpcshell/rs-blocklist/test_blocklist_targetapp_filter.js",
648         "toolkit/mozapps/extensions/test/xpcshell/rs-blocklist/test_blocklist_telemetry.js",
649         "toolkit/mozapps/extensions/test/xpcshell/rs-blocklist/test_blocklistchange.js",
650         "toolkit/mozapps/extensions/test/xpcshell/test_gmpProvider.js",
651         "toolkit/mozapps/extensions/test/xpcshell/test_no_addons.js",
652         "toolkit/mozapps/extensions/test/xpcshell/test_permissions_prefs.js",
653         "toolkit/mozapps/extensions/test/xpcshell/test_signed_updatepref.js",
654         "toolkit/mozapps/extensions/test/xpcshell/test_signed_verify.js",
655         "toolkit/mozapps/extensions/test/xpcshell/test_webextension.js",
656         "toolkit/mozapps/extensions/test/xpcshell/test_webextension_events.js",
657         "toolkit/mozapps/extensions/test/xpcshell/test_XPIStates.js",
658         "toolkit/mozapps/installer/precompile_cache.js",
659       ],
660       rules: {
661         "mozilla/reject-chromeutils-import-params": "off",
662       },
663     },
664   ],