This repository has been archived by the owner on Oct 20, 2024. It is now read-only.
forked from mozilla/gecko-dev
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
2233 lines (2227 loc) · 137 KB
/
.eslintrc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
"use strict";
const xpcshellTestConfig = require("eslint-plugin-mozilla/lib/configs/xpcshell-test.js");
const browserTestConfig = require("eslint-plugin-mozilla/lib/configs/browser-test.js");
const mochitestTestConfig = require("eslint-plugin-mozilla/lib/configs/mochitest-test.js");
const chromeTestConfig = require("eslint-plugin-mozilla/lib/configs/chrome-test.js");
const { testPaths } = require("./.eslintrc-test-paths.js");
const fs = require("fs");
const path = require("path");
/**
* Some configurations have overrides, which can't be specified within overrides,
* so we need to remove them.
*/
function removeOverrides(config) {
config = { ...config };
delete config.overrides;
return config;
}
function readFile(path) {
return fs
.readFileSync(path, { encoding: "utf-8" })
.split("\n")
.filter(p => p && !p.startsWith("#"));
}
const ignorePatterns = [
...readFile(
path.join(__dirname, "tools", "rewriting", "ThirdPartyPaths.txt")
),
...readFile(path.join(__dirname, "tools", "rewriting", "Generated.txt")),
...readFile(
path.join(
__dirname,
"devtools",
"client",
"debugger",
"src",
".eslintignore"
)
).map(p => `devtools/client/debugger/src/${p}`),
];
const httpTestingPaths = [
"**/*mixedcontent",
"**/*CrossOrigin",
"**/*crossorigin",
"**/*cors",
"**/*downgrade",
"**/*Downgrade",
];
module.exports = {
settings: {
"import/extensions": [".mjs"],
},
ignorePatterns,
// Ignore eslint configurations in parent directories.
root: true,
// New rules and configurations should generally be added in
// tools/lint/eslint/eslint-plugin-mozilla/lib/configs/recommended.js to
// allow external repositories that use the plugin to pick them up as well.
extends: ["plugin:mozilla/recommended"],
plugins: ["mozilla", "import", "json"],
overrides: [
{
files: [
// All .eslintrc.js files are in the node environment, so turn that
// on here.
// https://github.com/eslint/eslint/issues/13008
".eslintrc.js",
// *.config.js files are generally assumed to be configuration files
// based for node.
"*.config.?(m)js",
],
env: {
node: true,
browser: false,
},
},
{
files: [
"**/*.jsx",
"browser/components/pocket/content/**/*.js",
"browser/components/storybook/.storybook/**/*.mjs",
],
parserOptions: {
ecmaFeatures: {
jsx: true,
},
},
},
{
files: ["browser/components/storybook/**"],
env: {
"mozilla/privileged": false,
},
},
{
files: ["*.mjs"],
rules: {
"import/default": "error",
"import/export": "error",
"import/named": "error",
"import/namespace": "error",
"import/newline-after-import": "error",
"import/no-duplicates": "error",
"import/no-absolute-path": "error",
"import/no-named-default": "error",
"import/no-named-as-default": "error",
"import/no-named-as-default-member": "error",
"import/no-self-import": "error",
"import/no-unassigned-import": "error",
"import/no-unresolved": [
"error",
// Bug 1773473 - Ignore resolver URLs for chrome and resource as we
// do not yet have a resolver for them.
{ ignore: ["chrome://", "resource://"] },
],
"import/no-useless-path-segments": "error",
},
},
{
files: [
// Bug 1773475 - For now, turn off no-unresolved on some paths where we import
// from node_modules, as the ESLint setup only installs modules at the
// top-level.
"devtools/shared/compatibility/**",
"browser/components/storybook/**",
],
rules: {
"import/no-unresolved": "off",
},
},
{
files: ["*.html", "*.xhtml", "*.xml"],
rules: {
// Curly brackets are required for all the tree via recommended.js,
// however these files aren't auto-fixable at the moment.
curly: "off",
},
},
{
// TODO: Bug 1515949. Enable no-undef for gfx/
files: "gfx/layers/apz/test/mochitest/**",
rules: {
"no-undef": "off",
},
},
{
...removeOverrides(xpcshellTestConfig),
files: testPaths.xpcshell.map(path => `${path}**`),
excludedFiles: ["**/*.jsm", "**/*.mjs"],
},
{
// If it is an xpcshell head file, we turn off global unused variable checks, as it
// would require searching the other test files to know if they are used or not.
// This would be expensive and slow, and it isn't worth it for head files.
// We could get developers to declare as exported, but that doesn't seem worth it.
files: testPaths.xpcshell.map(path => `${path}head*.js`),
rules: {
"no-unused-vars": [
"error",
{
args: "none",
vars: "local",
},
],
},
},
{
// This section enables errors of no-unused-vars globally for all test*.js
// files in xpcshell test paths.
// This is not done in the xpcshell-test configuration as we cannot pull
// in overrides from there. We should at some stage, aim to enable this
// for all files in xpcshell-tests.
files: testPaths.xpcshell.map(path => `${path}test*.js`),
rules: {
// No declaring variables that are never used
"no-unused-vars": [
"error",
{
args: "none",
vars: "all",
},
],
},
},
{
...removeOverrides(browserTestConfig),
files: testPaths.browser.map(path => `${path}**`),
excludedFiles: ["**/*.jsm", "**/*.mjs"],
},
{
...removeOverrides(mochitestTestConfig),
files: testPaths.mochitest.map(path => `${path}**`),
excludedFiles: [
"**/*.jsm",
"**/*.mjs",
"security/manager/ssl/tests/mochitest/browser/**",
],
},
{
...removeOverrides(chromeTestConfig),
files: testPaths.chrome.map(path => `${path}**`),
excludedFiles: ["**/*.jsm", "**/*.mjs"],
},
{
env: {
// Ideally we wouldn't be using the simpletest env here, but our uses of
// js files mean we pick up everything from the global scope, which could
// be any one of a number of html files. So we just allow the basics...
"mozilla/simpletest": true,
},
files: [
...testPaths.mochitest.map(path => `${path}/**/*.js`),
...testPaths.chrome.map(path => `${path}/**/*.js`),
],
},
{
// Some directories have multiple kinds of tests, and some rules
// don't work well for HTML-based mochitests, so disable those.
files: testPaths.xpcshell
.concat(testPaths.browser)
.map(path => [`${path}/**/*.html`, `${path}/**/*.xhtml`])
.flat(),
rules: {
// plain/chrome mochitests don't automatically include Assert, so
// autofixing `ok()` to Assert.something is bad.
"mozilla/no-comparison-or-assignment-inside-ok": "off",
},
},
{
files: ["**/test/**", "**/tests/**"],
extends: ["plugin:mozilla/general-test"],
},
{
// Some directories reuse `test_foo.js` files between mochitest-plain and
// unit tests, or use custom postMessage-based assertion propagation into
// browser tests. Ignore those too:
files: [
// Reuses xpcshell unit test scripts in mochitest-plain HTML files.
"dom/indexedDB/test/**",
// Dispatches functions to the webpage in ways that are hard to detect.
"toolkit/components/antitracking/test/**",
],
rules: {
"mozilla/no-comparison-or-assignment-inside-ok": "off",
},
},
{
// Bug 881389 - Complete switching to console.createInstance from custom
// modules. To support the gradual switch, we log these as warnings until
// they have been transitioned.
files: [
"browser/base/content/browser-data-submission-info-bar.js",
"browser/base/content/browser-sync.js",
"browser/base/content/browser.js",
"browser/components/BrowserGlue.sys.mjs",
"browser/components/attribution/AttributionCode.sys.mjs",
"browser/components/customizableui/**",
"browser/components/downloads/**",
"browser/components/enterprisepolicies/**",
"browser/components/firefoxview/**",
"browser/components/migration/**",
"browser/components/newtab/lib/ASRouterPreferences.sys.mjs",
"browser/components/protocolhandler/WebProtocolHandlerRegistrar.sys.mjs",
"browser/components/shell/ShellService.sys.mjs",
"browser/components/syncedtabs/TabListComponent.sys.mjs",
"browser/components/uitour/UITour.sys.mjs",
"browser/tools/mozscreenshots/mozscreenshots/extension/Screenshot.sys.mjs",
"devtools/client/webconsole/test/**",
"devtools/shared/tests/xpcshell/test_console_filtering.js",
"devtools/shared/webconsole/test/chrome/test_consoleapi_innerID.html",
"dom/push/Push*.sys.mjs",
"mobile/android/modules/geckoview/GeckoViewUtils.sys.mjs",
"remote/shared/**",
"security/manager/ssl/RemoteSecuritySettings.sys.mjs",
"services/**",
"testing/mochitest/api.js",
"toolkit/components/backgroundtasks/**",
"toolkit/components/crashes/**",
"toolkit/components/enterprisepolicies/**",
"toolkit/components/extensions/**",
"toolkit/components/formautofill/**",
"toolkit/components/messaging-system/**",
"toolkit/components/normandy/**",
"toolkit/components/places/**",
"toolkit/components/printing/**",
"toolkit/components/taskscheduler/**",
"toolkit/components/telemetry/**",
"toolkit/components/utils/JsonSchemaValidator.sys.mjs",
"toolkit/modules/AsanReporter.sys.mjs",
"toolkit/modules/GMPInstallManager.sys.mjs",
"toolkit/modules/OSKeyStore.sys.mjs",
"toolkit/modules/ProfileAge.sys.mjs",
"toolkit/modules/tests/xpcshell/test_Log*.js",
"toolkit/mozapps/defaultagent/BackgroundTask_defaultagent.sys.mjs",
"toolkit/mozapps/extensions/**",
"toolkit/mozapps/update/**",
],
rules: {
"mozilla/use-console-createInstance": "off",
},
},
{
// Bug 1881270 - Gradually roll-out no-case-declarations to more areas.
files: [
"accessible/tests/mochitest/promisified-events.js",
"browser/actors/**",
"browser/base/content/**",
"browser/components/**",
"browser/modules/BrowserUsageTelemetry.sys.mjs",
"browser/modules/URILoadingHelper.sys.mjs",
"devtools/client/**",
"devtools/server/**",
"devtools/shared/layout/dom-matrix-2d.js",
"devtools/startup/DevToolsStartup.sys.mjs",
"docshell/test/navigation/file_blockBFCache.html",
"docshell/test/navigation/test_bug1375833.html",
"docshell/test/unit/AllowJavascriptParent.sys.mjs",
"dom/base/test/chrome/window_nsITextInputProcessor.xhtml",
"dom/html/test/forms/test_input_sanitization.html",
"dom/media/PeerConnection.sys.mjs",
"dom/media/autoplay/test/mochitest/test_autoplay_policy_web_audio_AudioParamStream.html",
"dom/payments/test/PayerDetailsChromeScript.js",
"dom/payments/test/simple_payment_request.html",
"dom/push/PushService.sys.mjs",
"dom/security/test/referrer-policy/browser_referrer_disallow_cross_site_relaxing.js",
"dom/tests/mochitest/bugs/test_bug622361.html",
"dom/workers/test/sourcemap_header_debugger.js",
"gfx/layers/apz/test/mochitest/**",
"intl/locale/tests/unit/test_localeService.js",
"layout/tools/layout-debug/LayoutDebugChild.sys.mjs",
"layout/tools/reftest/reftest.sys.mjs",
"mobile/android/actors/**",
"mobile/android/components/geckoview/GeckoViewStartup.sys.mjs",
"mobile/android/modules/geckoview/**",
"netwerk/test/browser/browser_test_data_channel_observer.js",
"netwerk/test/unit/test_proxyconnect.js",
"remote/**",
"services/fxaccounts/**",
"services/sync/**",
"testing/mochitest/ShutdownLeaksCollector.sys.mjs",
"testing/specialpowers/content/SpecialPowers*.sys.mjs",
"toolkit/actors/**",
"toolkit/components/**",
"toolkit/modules/**",
"toolkit/mozapps/downloads/DownloadLastDir.sys.mjs",
"toolkit/mozapps/extensions/**",
"toolkit/mozapps/update/UpdateListener.sys.mjs",
"toolkit/content/widgets/**",
"uriloader/exthandler/tests/mochitest/browser_download_open_with_internal_handler.js",
"widget/tests/file_test_ime_state_on_focus_move.js",
],
rules: {
"no-case-declarations": "warn",
},
},
{
// Bug 1881268 - Gradually roll-out no-constant-condition to more areas.
files: [
"accessible/tests/browser/mac/browser_attributed_text.js",
"accessible/tests/mochitest/text.js",
"browser/base/content/test/general/browser_bug734076.js",
"browser/base/content/test/static/**",
"browser/components/BrowserContentHandler.sys.mjs",
"browser/components/extensions/test/browser/browser_ext_slow_script.js",
"browser/components/places/content/places-tree.js",
"browser/components/translations/tests/browser/browser_translations_panel_fuzzing.js",
"browser/components/translations/tests/browser/browser_translations_full_page_panel_fuzzing.js",
"browser/components/urlbar/UrlbarUtils.sys.mjs",
"browser/components/urlbar/tests/browser/browser_copying.js",
"devtools/client/dom/test/head.js",
"devtools/client/framework/browser-toolbox/test/helpers-browser-toolbox.js",
"devtools/client/fronts/inspector/rule-rewriter.js",
"devtools/client/inspector/**",
"devtools/client/netmonitor/**",
"devtools/client/performance-new/test/browser/helpers.js",
"devtools/client/shared/**",
"devtools/client/webconsole/**",
"devtools/server/actors/**",
"devtools/server/socket/websocket-server.js",
"devtools/shared/css/parsing-utils.js",
"devtools/shared/inspector/css-logic.js",
"devtools/shared/tests/xpcshell/test_csslexer.js",
"docshell/test/mochitest/test_bug529119-1.html",
"docshell/test/mochitest/test_bug529119-2.html",
"docshell/test/navigation/file_sessionhistory_iframe_removal.html",
"docshell/test/navigation/test_online_offline_bfcache.html",
"dom/base/test/chrome/window_nsITextInputProcessor.xhtml",
"dom/base/test/fullscreen/file_fullscreen-bug-1798219.html",
"dom/base/test/unit/test_isequalnode.js",
"dom/filesystem/tests/script_fileList.js",
"dom/media/mediasource/test/test_Eviction_mp4.html",
"dom/media/mediasource/test/test_ExperimentalAsync.html",
"dom/media/webspeech/recognition/test/test_online_http.html",
"dom/media/webspeech/recognition/test/test_online_http_webkit.html",
"dom/streams/test/xpcshell/large-pipeto.js",
"dom/webtransport/test/xpcshell/test_simple_stream.js",
"dom/xhr/tests/terminateSyncXHR_worker.js",
"editor/libeditor/tests/test_contenteditable_text_input_handling.html",
"editor/libeditor/tests/test_selection_move_commands.html",
"gfx/layers/apz/test/mochitest/**",
"gfx/layers/layerviewer/layerTreeView.js",
"intl/uconv/tests/unit/test_charset_conversion.js",
"js/src/builtin/**",
"layout/inspector/tests/test_getCSSStyleRules.html",
"layout/inspector/tests/test_is_valid_css_color.html",
"layout/style/test/property_database.js",
"layout/style/test/test_computed_style_grid_with_pseudo.html",
"layout/style/test/test_visited_reftests.html",
"mobile/android/components/extensions/test/mochitest/test_ext_tabs_events.html",
"mobile/android/geckoview/src/androidTest/assets/www/getusermedia_xorigin_container.html",
"modules/libjar/test/unit/test_fault_handler.js",
"netwerk/test/httpserver/httpd.sys.mjs",
"netwerk/test/unit/**",
"remote/cdp/domains/content/runtime/ExecutionContext.sys.mjs",
"remote/cdp/test/browser/page/browser_printToPDF.js",
"remote/marionette/actors/MarionetteCommandsParent.sys.mjs",
"remote/shared/messagehandler/transports/RootTransport.sys.mjs",
"services/settings/Attachments.sys.mjs",
"storage/test/unit/test_storage_service.js",
"testing/talos/talos/pageloader/chrome/report.js",
"testing/talos/talos/**",
"toolkit/components/asyncshutdown/tests/xpcshell/head.js",
"toolkit/components/extensions/NativeMessaging.sys.mjs",
"toolkit/components/extensions/test/xpcshell/test_ext_i18n.js",
"toolkit/components/extensions/test/xpcshell/test_ext_i18n_css.js",
"toolkit/components/formautofill/default/FormAutofillPrompter.sys.mjs",
"toolkit/components/pictureinpicture/tests/browser_videoEmptied.js",
"toolkit/components/printing/tests/browser_print_stream.js",
"toolkit/components/telemetry/tests/unit/test_ThirdPartyModulesPing.js",
"toolkit/components/terminator/tests/xpcshell/test_terminator_record.js",
"toolkit/content/aboutwebrtc/aboutWebrtc.mjs",
"toolkit/content/tests/widgets/tree_shared.js",
"toolkit/content/widgets/tabbox.js",
"toolkit/crashreporter/test/browser/crashreport.sjs",
"toolkit/modules/CertUtils.sys.mjs",
"toolkit/mozapps/downloads/tests/unit/test_DownloadUtils.js",
"toolkit/mozapps/extensions/internal/XPIInstall.sys.mjs",
"tools/profiler/tests/**",
"uriloader/exthandler/tests/mochitest/browser_save_filenames.js",
"widget/tests/browser/browser_test_AZERTY_digit_shortcut.js",
"widget/tests/window_composition_text_querycontent.xhtml",
],
rules: { "no-constant-condition": "warn" },
},
{
files: [
"browser/actors/AboutPocketParent.sys.mjs",
"browser/actors/SpeechDispatcherParent.sys.mjs",
"browser/base/content/browser-sync.js",
"browser/base/content/tabbrowser.js",
"browser/components/BrowserContentHandler.sys.mjs",
"browser/components/enterprisepolicies/Policies.sys.mjs",
"browser/components/messagepreview/actors/AboutMessagePreviewChild.sys.mjs",
"browser/components/messagepreview/actors/AboutMessagePreviewParent.sys.mjs",
"browser/components/migration/ChromeMigrationUtils.sys.mjs",
"browser/components/migration/SafariProfileMigrator.sys.mjs",
"browser/components/places/content/places-tree.js",
"browser/components/places/content/treeView.js",
"browser/extensions/screenshots/build/shot.js",
"browser/extensions/webcompat/**",
"browser/modules/BackgroundTask_*.sys.mjs",
"browser/themes/BuiltInThemes.sys.mjs",
"browser/tools/mozscreenshots/mozscreenshots/extension/lib/mozscreenshots-script.js",
"browser/tools/mozscreenshots/mozscreenshots/extension/lib/mozscreenshots.html",
"devtools/client/**",
"devtools/server/actors/inspector/css-logic.js",
"devtools/shared/compatibility/bin/update.js",
"devtools/shared/discovery/discovery.js",
"devtools/shared/protocol/Front.js",
"dom/media/webvtt/update-webvtt.js",
"gfx/layers/layerviewer/layerTreeView.js",
"layout/tools/reftest/reftest-analyzer.xhtml",
"mobile/android/geckoview/src/androidTest/**",
"services/automation/ServicesAutomation.sys.mjs",
"services/settings/RemoteSettings.worker.mjs",
"services/sync/modules/SyncDisconnect.sys.mjs",
"taskcluster/docker/index-task/insert-indexes.js",
"testing/**",
"toolkit/actors/NetErrorParent.sys.mjs",
"toolkit/components/aboutcheckerboard/content/aboutCheckerboard.js",
"toolkit/components/backgroundtasks/BackgroundTask_message.sys.mjs",
"toolkit/components/backgroundtasks/BackgroundTasksTestUtils.sys.mjs",
"toolkit/components/credentialmanagement/IdentityCredentialPromptService.sys.mjs",
"toolkit/components/ml/content/MLEngine.worker.mjs",
"toolkit/components/telemetry/pings/BackgroundTask_pingsender.sys.mjs",
"toolkit/components/translations/actors/TranslationsParent.sys.mjs",
"toolkit/components/translations/content/translations-engine.worker.js",
"toolkit/components/xulstore/XULStore.sys.mjs",
"toolkit/content/aboutTelemetry.js",
"toolkit/content/customElements.js",
"toolkit/content/widgets/dialog.js",
"toolkit/content/widgets/menu.js",
"toolkit/mozapps/update/BackgroundUpdate.sys.mjs",
],
rules: {
"no-console": "off",
},
},
{
// Bug 877389 - Gradually migrate from Cu.reportError to console.error.
// Enable these as we fix more areas.
files: [
"dom/push/test/mockpushserviceparent.js",
"browser/components/extensions/**",
"toolkit/components/extensions/**",
"toolkit/mozapps/extensions/**",
],
rules: {
"mozilla/no-cu-reportError": "off",
},
},
{
files: ["**"],
excludedFiles: [
"accessible/tests/**",
"browser/actors/**",
"browser/base/content/**",
"browser/components/Browser*",
"browser/components/aboutlogins/**",
"browser/components/aboutwelcome/**",
"browser/components/asrouter/**",
"browser/components/attribution/**",
"browser/components/customizableui/**",
"browser/components/downloads/**",
"browser/components/newtab/**",
"browser/components/originattributes/test/browser/**",
"browser/components/pocket/content/pkt*",
"browser/components/preferences/**",
"browser/components/privatebrowsing/**",
"browser/components/safebrowsing/content/test/**",
"browser/components/screenshots/**",
"browser/components/sessionstore/**",
"browser/components/storybook/.storybook/**",
"browser/components/tests/browser/**",
"browser/extensions/screenshots/**",
"browser/modules/**",
"devtools/**",
"docshell/base/URIFixup.sys.mjs",
"dom/**",
"editor/**",
"extensions/permissions/test/PermissionTestUtils.sys.mjs",
"gfx/layers/apz/test/mochitest/apz_test_native_event_utils.js",
"image/test/**",
"intl/**",
"js/xpconnect/**",
"layout/**",
"mobile/android/**",
"modules/**",
"netwerk/**",
"parser/htmlparser/**",
"services/**",
"storage/**",
"testing/**",
"toolkit/actors/**",
"toolkit/components/aboutmemory/**",
"toolkit/components/aboutprocesses/content/aboutProcesses.js",
"toolkit/components/antitracking/**",
"toolkit/components/asyncshutdown/**",
"toolkit/components/backgroundtasks/BackgroundTasks*.sys.mjs",
"toolkit/components/cleardata/**",
"toolkit/components/contentprefs/ContentPrefService2.sys.mjs",
"toolkit/components/cookiebanners/**",
"toolkit/components/corroborator/Corroborate.sys.mjs",
"toolkit/components/crashes/**",
"toolkit/components/crashmonitor/CrashMonitor.sys.mjs",
"toolkit/components/credentialmanagement/IdentityCredentialPromptService.sys.mjs",
"toolkit/components/downloads/**",
"toolkit/components/featuregates/FeatureGate*.*",
"toolkit/components/forgetaboutsite/test/unit/test_removeDataFromDomain.js",
"toolkit/components/glean/tests/browser/**",
"toolkit/components/kvstore/kvstore.sys.mjs",
"toolkit/components/lz4/lz4.js",
"toolkit/components/messaging-system/**",
"toolkit/components/mozintl/mozIntl.sys.mjs",
"toolkit/components/nimbus/**",
"toolkit/components/normandy/**",
"toolkit/components/passwordmgr/**",
"toolkit/components/pdfjs/**",
"toolkit/components/pictureinpicture/**",
"toolkit/components/places/**",
"toolkit/components/printing/content/print*.*",
"toolkit/components/processtools/tests/browser/browser_test_powerMetrics.js",
"toolkit/components/promiseworker/**/PromiseWorker.*",
"toolkit/components/prompts/**",
"toolkit/components/reader/**",
"toolkit/components/reputationservice/test/unit/test_app_rep_windows.js",
"toolkit/components/taskscheduler/TaskScheduler*.*",
"toolkit/components/telemetry/**",
"toolkit/components/thumbnails/**",
"toolkit/components/timermanager/UpdateTimerManager.*",
"toolkit/components/translation/LanguageDetector.*",
"toolkit/components/url-classifier/**",
"toolkit/components/utils/**",
"toolkit/components/viewsource/**",
"toolkit/components/windowwatcher/**",
"toolkit/components/workerloader/require.js",
"toolkit/content/**",
"toolkit/crashreporter/**",
"toolkit/modules/**",
"toolkit/mozapps/downloads/**",
"toolkit/mozapps/extensions/**",
"toolkit/mozapps/handling/**",
"toolkit/mozapps/update/**",
"toolkit/profile/test/test_create_profile.xhtml",
"tools/code-coverage/tests/mochitest/test_coverage_specialpowers.html",
"tools/lint/eslint/**",
"tools/profiler/tests/**",
"uriloader/**",
"widget/tests/window_composition_text_querycontent.xhtml",
],
extends: ["plugin:mozilla/valid-jsdoc"],
},
{
files: ["layout/**"],
excludedFiles: ["layout/tools/reftest/**"],
rules: {
"object-shorthand": "off",
"mozilla/avoid-removeChild": "off",
"mozilla/consistent-if-bracing": "off",
"mozilla/reject-importGlobalProperties": "off",
"mozilla/no-arbitrary-setTimeout": "off",
"mozilla/no-define-cc-etc": "off",
"mozilla/prefer-boolean-length-check": "off",
"mozilla/use-default-preference-values": "off",
"mozilla/use-includes-instead-of-indexOf": "off",
"mozilla/use-services": "off",
"mozilla/use-ownerGlobal": "off",
complexity: "off",
"consistent-return": "off",
"no-array-constructor": "off",
"no-caller": "off",
"no-cond-assign": "off",
"no-extra-boolean-cast": "off",
"no-eval": "off",
"no-func-assign": "off",
"no-global-assign": "off",
"no-implied-eval": "off",
"no-lonely-if": "off",
"no-nested-ternary": "off",
"no-new-wrappers": "off",
"no-redeclare": "off",
"no-restricted-globals": "off",
"no-sequences": "off",
"no-throw-literal": "off",
"no-useless-concat": "off",
"no-undef": "off",
"no-unreachable": "off",
"no-unsafe-negation": "off",
"no-unused-vars": "off",
"no-useless-return": "off",
},
},
{
files: [
"dom/animation/test/**",
"dom/base/test/*.*",
"dom/base/test/jsmodules/**",
"dom/canvas/test/**",
"dom/events/test/**",
"dom/file/tests/**",
"dom/html/test/**",
"dom/media/webaudio/test/**",
"dom/media/webrtc/tests/**",
"dom/payments/test/**",
"dom/performance/tests/**",
"dom/quota/test/browser/**",
"dom/quota/test/xpcshell/**",
"dom/security/test/cors/**",
"dom/security/test/csp/**",
"dom/security/test/mixedcontentblocker/**",
"dom/serviceworkers/test/**",
"dom/smil/test/**",
"dom/tests/mochitest/**",
"dom/vr/test/**",
"dom/webauthn/tests/**",
"dom/websocket/tests/**",
"dom/workers/test/**",
"dom/worklet/tests/**",
],
rules: {
"mozilla/avoid-removeChild": "off",
"mozilla/consistent-if-bracing": "off",
"mozilla/no-compare-against-boolean-literals": "off",
"mozilla/use-includes-instead-of-indexOf": "off",
"mozilla/use-ownerGlobal": "off",
"mozilla/use-services": "off",
"no-array-constructor": "off",
"no-caller": "off",
"no-constant-condition": "off",
"no-control-regex": "off",
"no-else-return": "off",
"no-empty": "off",
"no-func-assign": "off",
"no-global-assign": "off",
"no-lone-blocks": "off",
"no-lonely-if": "off",
"no-nested-ternary": "off",
"no-new-wrappers": "off",
"no-object-constructor": "off",
"no-redeclare": "off",
"no-restricted-globals": "off",
"no-shadow": "off",
"no-sparse-arrays": "off",
"no-throw-literal": "off",
"no-useless-concat": "off",
},
},
{
// Bug 1792693: Gradually enable no-undef and no-unused-vars on these
// directories.
files: [
"dom/animation/test/**",
"dom/base/test/*.*",
"dom/base/test/unit/test_serializers_entities*.js",
"dom/base/test/jsmodules/**",
"dom/canvas/test/**",
"dom/events/test/**",
"dom/file/tests/**",
"dom/html/test/**",
"dom/media/webrtc/tests/**",
"dom/media/webspeech/recognition/test/**",
"dom/media/webspeech/synth/test/**",
"dom/payments/test/**",
"dom/performance/tests/**",
"dom/quota/test/browser/**",
"dom/quota/test/common/**",
"dom/quota/test/mochitest/**",
"dom/quota/test/xpcshell/**",
"dom/security/test/cors/**",
"dom/security/test/csp/**",
"dom/security/test/mixedcontentblocker/**",
"dom/serviceworkers/test/**",
"dom/smil/test/**",
"dom/tests/mochitest/**",
"dom/vr/test/**",
"dom/webauthn/tests/**",
"dom/webgpu/mochitest/**",
"dom/websocket/tests/**",
"dom/workers/test/**",
"dom/worklet/tests/**",
],
rules: {
"no-undef": "off",
"no-unused-vars": "off",
},
},
{
// Rules of Hooks broadly checks for camelCase "use" identifiers, so
// enable only for paths actually using React to avoid false positives.
extends: ["plugin:react-hooks/recommended"],
files: [
"browser/components/aboutwelcome/**",
"browser/components/asrouter/**",
"browser/components/newtab/**",
"browser/components/pocket/**",
"devtools/**",
],
rules: {
// react-hooks/recommended has exhaustive-deps as a warning, we prefer
// errors, so that raised issues get addressed one way or the other.
"react-hooks/exhaustive-deps": "error",
},
},
{
// Exempt files with these paths since they have to use http for full coverage
files: httpTestingPaths.map(path => `${path}**`),
rules: {
"@microsoft/sdl/no-insecure-url": "off",
},
},
{
// Exempt all components and test files that explicitly want to test http urls from 'no-insecure-url' rule.
// Gradually change test cases such that this list gets smaller and more precisely. Bug 1758951
files: [
// Re-exempt all xpcshell-test files - some configurations cause rules to be re-applied, so we override them again here.
"test*/unit*/**",
"**/test*/unit/**",
"**/test*/xpcshell/**",
"test*/*/xpcshell/**",
"testing/profiles/unittest-required/user.js",
"testing/profiles/xpcshell/user.js",
// Xpcshell test that aren't fitting the pattern Bug 1758951
"toolkit/components/places/tests/bookmarks/**",
"toolkit/components/places/tests/expiration/**",
"toolkit/components/places/tests/favicons/**",
"toolkit/components/places/tests/history/**",
"toolkit/components/places/tests/legacy/**",
"toolkit/components/places/tests/maintenance/**",
"toolkit/components/places/tests/migration/**",
"toolkit/components/places/tests/queries/**",
"toolkit/components/places/tests/sync/**",
// Exempt tests that set https_first_disable to true Bug 1758951
"browser/components/downloads/test/browser/browser_image_mimetype_issues.js",
"browser/components/enterprisepolicies/tests/browser/browser_policy_cookie_settings.js",
"browser/components/enterprisepolicies/tests/browser/browser_policy_extensionsettings.js",
"devtools/server/tests/browser/browser_storage_listings.js",
"devtools/server/tests/browser/browser_storage_updates.js",
"image/test/browser/browser_offscreen_image_in_out_of_process_iframe.js",
"security/manager/ssl/tests/mochitest/browser/browser_HSTS.js",
"testing/mochitest/tests/browser/browser_browserLoaded_content_loaded.js",
"toolkit/components/extensions/test/browser/browser_ext_downloads_referrer.js",
"toolkit/components/messaging-system/schemas/TriggerActionSchemas/test/browser/browser_asrouter_trigger_listeners.js",
"toolkit/components/normandy/test/browser/browser_about_studies.js",
"toolkit/components/remotebrowserutils/tests/browser/browser_RemoteWebNavigation.js",
"toolkit/components/remotepagemanager/tests/browser/browser_RemotePageManager.js",
"toolkit/components/viewsource/test/browser/browser_bug464222.js",
"toolkit/components/viewsource/test/browser/browser_viewsource_newwindow.js",
"toolkit/content/tests/browser/browser_label_textlink.js",
"toolkit/crashreporter/test/browser/browser_aboutCrashesResubmit.js",
// Exempt tests that set pref dom.security.https_first to false Bug 1758951
"browser/tools/mozscreenshots/controlCenter/browser_controlCenter.js",
"dom/ipc/tests/test_bug1086684.js",
"dom/manifest/test/browser_ManifestObtainer_obtain.js",
"dom/media/test/test_access_control.html",
"dom/websocket/tests/test_bug1384658.html",
"testing/mochitest/browser-test.js",
"devtools/client/shared/components/test/node/components/reps/string-with-url.test.js", // no test case
// Exempt files that have comment which says "not [to] enforce https"
// https://searchfox.org/mozilla-central/search?q=%2F%2F+We+should+not+enforce+https+for+tests+using+this+page.&path=
"devtools/client/storage/test/browser_storage_basic_usercontextid_1.js",
"devtools/client/storage/test/browser_storage_basic_usercontextid_2.js",
"devtools/client/storage/test/browser_storage_basic_with_fragment.js",
"devtools/client/storage/test/browser_storage_cookies_delete_all.js",
"devtools/client/storage/test/browser_storage_delete.js",
"devtools/client/storage/test/browser_storage_delete_all.js",
"devtools/client/storage/test/browser_storage_delete_tree.js",
"devtools/client/storage/test/browser_storage_delete_usercontextid.js",
"devtools/client/storage/test/browser_storage_dom_cache_disabled.js",
"devtools/client/storage/test/browser_storage_sidebar.js",
"devtools/client/storage/test/browser_storage_sidebar_toggle.js",
"devtools/client/storage/test/head.js",
"devtools/client/storage/test/storage-complex-values.html",
"devtools/client/storage/test/storage-sidebar-parsetree.html",
// No .(s)js or html test files Bug 1780024
"services/sync/tests/tps/**",
// Files that test https and http already
"browser/base/content/test/general/browser_remoteTroubleshoot.js",
"browser/base/content/test/favicons/browser_mixed_content.js",
"browser/base/content/test/sanitize/browser_sanitize-history.js",
"devtools/client/shared/test/shared-head.js",
"devtools/client/shared/test/head.js",
"browser/tools/mozscreenshots/mozscreenshots/extension/configurations/ControlCenter.sys.mjs",
// uses new HttpServer which doesn't support https
"browser/base/content/test/favicons/browser_favicon_nostore.js",
// That are all files that produes warnings in the existing test infrastructure.
// Since our focus is that new tests won't use http without thinking twice we exempt
// these test files for now. Bug 1758951
"browser/components/aboutlogins/tests/browser/browser_createLogin.js",
"browser/components/aboutlogins/tests/chrome/test_login_item.html",
"browser/components/asrouter/modules/CFRMessageProvider.sys.mjs",
"browser/components/contextualidentity/test/browser/browser_broadcastchannel.js",
"browser/components/contextualidentity/test/browser/browser_eme.js",
"browser/components/contextualidentity/test/browser/browser_favicon.js",
"browser/components/contextualidentity/test/browser/browser_forgetAPI_EME_forgetThisSite.js",
"browser/components/contextualidentity/test/browser/browser_forgetAPI_cookie_getCookiesWithOriginAttributes.js",
"browser/components/contextualidentity/test/browser/browser_forgetAPI_quota_clearStoragesForPrincipal.js",
"browser/components/contextualidentity/test/browser/browser_forgetaboutsite.js",
"browser/components/contextualidentity/test/browser/browser_middleClick.js",
"browser/components/contextualidentity/test/browser/browser_reopenIn.js",
"browser/components/contextualidentity/test/browser/browser_restore_getCookiesWithOriginAttributes.js",
"browser/components/contextualidentity/test/browser/browser_usercontextid_tabdrop.js",
"browser/components/contextualidentity/test/browser/saveLink.sjs",
"browser/components/customizableui/test/browser_947914_button_history.js",
"browser/components/customizableui/test/browser_947914_button_print.js",
"browser/components/customizableui/test/browser_947914_button_zoomReset.js",
"browser/components/customizableui/test/browser_backfwd_enabled_post_customize.js",
"browser/components/customizableui/test/browser_customization_context_menus.js",
"browser/components/customizableui/test/browser_exit_background_customize_mode.js",
"browser/components/customizableui/test/browser_history_recently_closed.js",
"browser/components/customizableui/test/browser_history_recently_closed_middleclick.js",
"browser/components/customizableui/test/browser_synced_tabs_menu.js",
"browser/components/downloads/test/browser/browser_download_overwrite.js",
"browser/components/downloads/test/browser/browser_go_to_download_page.js",
"browser/components/downloads/test/browser/browser_iframe_gone_mid_download.js",
"browser/components/downloads/test/browser/head.js",
"browser/components/enterprisepolicies/tests/browser/browser_policy_disable_feedback_commands.js",
"browser/components/enterprisepolicies/tests/browser/browser_policy_handlers.js",
"browser/components/enterprisepolicies/tests/browser/browser_policy_search_engine.js",
"browser/components/enterprisepolicies/tests/browser/browser_policy_set_homepage.js",
"browser/components/enterprisepolicies/tests/browser/browser_policy_set_startpage.js",
"browser/components/extensions/test/browser/browser_ext_autocompletepopup.js",
"browser/components/extensions/test/browser/browser_ext_browserAction_context.js",
"browser/components/extensions/test/browser/browser_ext_browserAction_contextMenu.js",
"browser/components/extensions/test/browser/browser_ext_browserAction_popup_preload.js",
"browser/components/extensions/test/browser/browser_ext_browsingData_history.js",
"browser/components/extensions/test/browser/browser_ext_chrome_settings_overrides_home.js",
"browser/components/extensions/test/browser/browser_ext_commands_execute_page_action.js",
"browser/components/extensions/test/browser/browser_ext_contentscript_cross_docGroup_adoption.js",
"browser/components/extensions/test/browser/browser_ext_contentscript_cross_docGroup_adoption_xhr.js",
"browser/components/extensions/test/browser/browser_ext_contextMenus_targetUrlPatterns.js",
"browser/components/extensions/test/browser/browser_ext_contextMenus_urlPatterns.js",
"browser/components/extensions/test/browser/browser_ext_devtools_inspectedWindow_targetSwitch.js",
"browser/components/extensions/test/browser/browser_ext_devtools_network.js",
"browser/components/extensions/test/browser/browser_ext_devtools_network_targetSwitch.js",
"browser/components/extensions/test/browser/browser_ext_find.js",
"browser/components/extensions/test/browser/browser_ext_management.js",
"browser/components/extensions/test/browser/browser_ext_menus.js",
"browser/components/extensions/test/browser/browser_ext_menus_replace_menu_context.js",
"browser/components/extensions/test/browser/browser_ext_menus_targetElement_shadow.js",
"browser/components/extensions/test/browser/browser_ext_nontab_process_switch.js",
"browser/components/extensions/test/browser/browser_ext_optionsPage_privileges.js",
"browser/components/extensions/test/browser/browser_ext_originControls.js",
"browser/components/extensions/test/browser/browser_ext_originControls_browserAction.js",
"browser/components/extensions/test/browser/browser_ext_pageAction_context.js",
"browser/components/extensions/test/browser/browser_ext_pageAction_popup.js",
"browser/components/extensions/test/browser/browser_ext_pageAction_show_matches.js",
"browser/components/extensions/test/browser/browser_ext_pageAction_simple.js",
"browser/components/extensions/test/browser/browser_ext_popup_api_injection.js",
"browser/components/extensions/test/browser/browser_ext_popup_focus.js",
"browser/components/extensions/test/browser/browser_ext_port_disconnect_on_crash.js",
"browser/components/extensions/test/browser/browser_ext_runtime_openOptionsPage.js",
"browser/components/extensions/test/browser/browser_ext_runtime_openOptionsPage_uninstall.js",
"browser/components/extensions/test/browser/browser_ext_runtime_setUninstallURL.js",
"browser/components/extensions/test/browser/browser_ext_search_favicon.js",
"browser/components/extensions/test/browser/browser_ext_sessions_forgetClosedTab.js",
"browser/components/extensions/test/browser/browser_ext_sessions_forgetClosedWindow.js",
"browser/components/extensions/test/browser/browser_ext_sessions_getRecentlyClosed.js",
"browser/components/extensions/test/browser/browser_ext_sessions_getRecentlyClosed_private.js",
"browser/components/extensions/test/browser/browser_ext_sessions_getRecentlyClosed_tabs.js",
"browser/components/extensions/test/browser/browser_ext_sessions_incognito.js",
"browser/components/extensions/test/browser/browser_ext_sessions_restoreTab.js",
"browser/components/extensions/test/browser/browser_ext_sessions_window_tab_value.js",
"browser/components/extensions/test/browser/browser_ext_slow_script.js",
"browser/components/extensions/test/browser/browser_ext_tabs_attention.js",
"browser/components/extensions/test/browser/browser_ext_tabs_containerIsolation.js",
"browser/components/extensions/test/browser/browser_ext_tabs_create.js",
"browser/components/extensions/test/browser/browser_ext_tabs_discard.js",
"browser/components/extensions/test/browser/browser_ext_tabs_discard_reversed.js",
"browser/components/extensions/test/browser/browser_ext_tabs_discarded.js",
"browser/components/extensions/test/browser/browser_ext_tabs_duplicate.js",
"browser/components/extensions/test/browser/browser_ext_tabs_events_order.js",
"browser/components/extensions/test/browser/browser_ext_tabs_executeScript.js",
"browser/components/extensions/test/browser/browser_ext_tabs_executeScript_bad.js",
"browser/components/extensions/test/browser/browser_ext_tabs_hide.js",
"browser/components/extensions/test/browser/browser_ext_tabs_hide_update.js",
"browser/components/extensions/test/browser/browser_ext_tabs_highlight.js",
"browser/components/extensions/test/browser/browser_ext_tabs_insertCSS.js",
"browser/components/extensions/test/browser/browser_ext_tabs_printPreview.js",
"browser/components/extensions/test/browser/browser_ext_tabs_query.js",
"browser/components/extensions/test/browser/browser_ext_tabs_readerMode.js",
"browser/components/extensions/test/browser/browser_ext_tabs_saveAsPDF.js",
"browser/components/extensions/test/browser/browser_ext_tabs_sendMessage.js",
"browser/components/extensions/test/browser/browser_ext_tabs_sharingState.js",
"browser/components/extensions/test/browser/browser_ext_tabs_update_url.js",
"browser/components/extensions/test/browser/browser_ext_tabs_warmup.js",
"browser/components/extensions/test/browser/browser_ext_tabs_zoom.js",
"browser/components/extensions/test/browser/browser_ext_topSites.js",
"browser/components/extensions/test/browser/browser_ext_webNavigation_containerIsolation.js",
"browser/components/extensions/test/browser/browser_ext_webNavigation_getFrames.js",
"browser/components/extensions/test/browser/browser_ext_webNavigation_urlbar_transitions.js",
"browser/components/extensions/test/browser/browser_ext_webRequest.js",
"browser/components/extensions/test/browser/browser_ext_webRequest_error_after_stopped_or_closed.js",
"browser/components/extensions/test/browser/browser_ext_windows.js",
"browser/components/extensions/test/browser/browser_ext_windows_allowScriptsToClose.js",
"browser/components/extensions/test/browser/browser_ext_windows_create_tabId.js",
"browser/components/firefoxview/tests/browser/browser_recently_closed_tabs.js",
"browser/components/newtab/content-src/components/DiscoveryStreamComponents/TopSites/TopSites.jsx ",
"browser/components/newtab/content-src/components/TopSites/TopSiteForm.jsx ",
"browser/components/newtab/lib/PlacesFeed.sys.mjs ",
"browser/components/originattributes/test/browser/browser_broadcastChannel.js",
"browser/components/originattributes/test/browser/browser_cache.js",
"browser/components/originattributes/test/browser/browser_favicon_firstParty.js",
"browser/components/originattributes/test/browser/browser_favicon_userContextId.js",
"browser/components/originattributes/test/browser/browser_firstPartyIsolation.js",
"browser/components/originattributes/test/browser/browser_firstPartyIsolation_blobURI.js",
"browser/components/originattributes/test/browser/browser_firstPartyIsolation_js_uri.js",
"browser/components/originattributes/test/browser/browser_firstPartyIsolation_saveAs.js",
"browser/components/originattributes/test/browser/browser_permissions.js",
"browser/components/originattributes/test/browser/browser_postMessage.js",
"browser/components/originattributes/test/browser/browser_windowOpenerRestriction.js",
"browser/components/originattributes/test/browser/file_postMessage.html",
"browser/components/originattributes/test/browser/file_saveAs.sjs",
"browser/components/originattributes/test/browser/file_thirdPartyChild.iframe.html",
"browser/components/originattributes/test/browser/file_thirdPartyChild.worker.js",
"browser/components/originattributes/test/browser/head.js",
"browser/components/originattributes/test/browser/window2.html",
"browser/components/originattributes/test/browser/window3.html",
"browser/components/pagedata/tests/browser/browser_pagedata_background.js",
"browser/components/pagedata/tests/browser/browser_pagedata_cache.js",
"browser/components/places/tests/browser/browser_bookmarkMenu_hiddenWindow.js",
"browser/components/places/tests/browser/browser_bookmarkProperties_addFolderDefaultButton.js",
"browser/components/places/tests/browser/browser_bookmarkProperties_cancel.js",
"browser/components/places/tests/browser/browser_bookmarkProperties_editTagContainer.js",
"browser/components/places/tests/browser/browser_bookmarkProperties_no_user_actions.js",
"browser/components/places/tests/browser/browser_bookmarkProperties_speculativeConnection.js",
"browser/components/places/tests/browser/browser_bookmark_add_tags.js",
"browser/components/places/tests/browser/browser_bookmark_all_tabs.js",
"browser/components/places/tests/browser/browser_bookmark_backup_export_import.js",
"browser/components/places/tests/browser/browser_bookmark_context_menu_contents.js",
"browser/components/places/tests/browser/browser_bookmark_copy_folder_tree.js",
"browser/components/places/tests/browser/browser_bookmark_folder_moveability.js",
"browser/components/places/tests/browser/browser_bookmark_titles.js",