summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/fetch/metadata/tools/fetch-metadata.conf.yml
blob: b96bd2fd7b4b81f6681ec84ffe41afe85576f1fd (plain)
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
---
templates: templates
output_directory: ../generated
cases:
  - all_subtests:
      expected: NULL
      filename_flags: []
    common_axis:
      - headerName: sec-fetch-site
        origins: [httpOrigin]
        description: Not sent to non-trustworthy same-origin destination
      - headerName: sec-fetch-site
        origins: [httpSameSite]
        description: Not sent to non-trustworthy same-site destination
      - headerName: sec-fetch-site
        origins: [httpCrossSite]
        description: Not sent to non-trustworthy cross-site destination
      - headerName: sec-fetch-mode
        origins: [httpOrigin]
        description: Not sent to non-trustworthy same-origin destination
      - headerName: sec-fetch-mode
        origins: [httpSameSite]
        description: Not sent to non-trustworthy same-site destination
      - headerName: sec-fetch-mode
        origins: [httpCrossSite]
        description: Not sent to non-trustworthy cross-site destination
      - headerName: sec-fetch-dest
        origins: [httpOrigin]
        description: Not sent to non-trustworthy same-origin destination
      - headerName: sec-fetch-dest
        origins: [httpSameSite]
        description: Not sent to non-trustworthy same-site destination
      - headerName: sec-fetch-dest
        origins: [httpCrossSite]
        description: Not sent to non-trustworthy cross-site destination
      - headerName: sec-fetch-user
        origins: [httpOrigin]
        description: Not sent to non-trustworthy same-origin destination
      - headerName: sec-fetch-user
        origins: [httpSameSite]
        description: Not sent to non-trustworthy same-site destination
      - headerName: sec-fetch-user
        origins: [httpCrossSite]
        description: Not sent to non-trustworthy cross-site destination
    template_axes:
      # The `AudioWorklet` interface is only available in secure contexts
      # https://webaudio.github.io/web-audio-api/#AudioWorklet
      audioworklet.https.sub.html: []
      # Service workers are only available in secure context
      fetch-via-serviceworker.https.sub.html: []
      # Service workers are only available in secure context
      serviceworker.https.sub.html: []

      css-images.sub.html:
        - filename_flags: [tentative]
      css-font-face.sub.html:
        - filename_flags: [tentative]
      element-a.sub.html: [{}]
      element-area.sub.html: [{}]
      element-audio.sub.html: [{}]
      element-embed.sub.html: [{}]
      element-frame.sub.html: [{}]
      element-iframe.sub.html: [{}]
      element-img.sub.html:
        - sourceAttr: src
        - sourceAttr: srcset
      element-img-environment-change.sub.html: [{}]
      element-input-image.sub.html: [{}]
      element-link-icon.sub.html: [{}]
      element-link-prefetch.optional.sub.html: [{}]
      element-meta-refresh.optional.sub.html: [{}]
      element-picture.sub.html: [{}]
      element-script.sub.html:
        - {}
        - elementAttrs: { type: module }
      element-video.sub.html: [{}]
      element-video-poster.sub.html: [{}]
      fetch.sub.html: [{}]
      form-submission.sub.html:
        - method: GET
        - method: POST
      header-link.sub.html:
        - rel: icon
        - rel: stylesheet
      header-refresh.optional.sub.html: [{}]
      window-location.sub.html: [{}]
      script-module-import-dynamic.sub.html: [{}]
      script-module-import-static.sub.html: [{}]
      svg-image.sub.html: [{}]
      window-history.sub.html: [{}]
      worker-dedicated-importscripts.sub.html: [{}]
      # `new Worker()` only makes same-origin requests, therefore we split it
      # out into the next block.
      worker-dedicated-constructor.sub.html: []

  - all_subtests:
      expected: NULL
      filename_flags: []
    common_axis:
      - headerName: sec-fetch-site
        origins: [httpOrigin]
        description: Not sent to non-trustworthy same-origin destination
      - headerName: sec-fetch-mode
        origins: [httpOrigin]
        description: Not sent to non-trustworthy same-origin destination
      - headerName: sec-fetch-dest
        origins: [httpOrigin]
        description: Not sent to non-trustworthy same-origin destination
      - headerName: sec-fetch-user
        origins: [httpOrigin]
        description: Not sent to non-trustworthy same-origin destination
    template_axes:
      # All the templates in this block are unused with the exception of
      # `worker-dedicated-constructor`
      audioworklet.https.sub.html: []
      fetch-via-serviceworker.https.sub.html: []
      serviceworker.https.sub.html: []
      css-images.sub.html: []
      css-font-face.sub.html: []
      element-a.sub.html: []
      element-area.sub.html: []
      element-audio.sub.html: []
      element-embed.sub.html: []
      element-frame.sub.html: []
      element-iframe.sub.html: []
      element-img.sub.html: []
      element-img-environment-change.sub.html: []
      element-input-image.sub.html: []
      element-link-icon.sub.html: []
      element-link-prefetch.optional.sub.html: []
      element-meta-refresh.optional.sub.html: []
      element-picture.sub.html: []
      element-script.sub.html: []
      element-video.sub.html: []
      element-video-poster.sub.html: []
      fetch.sub.html: []
      form-submission.sub.html: []
      header-link.sub.html: []
      header-refresh.optional.sub.html: []
      window-location.sub.html: []
      script-module-import-dynamic.sub.html: []
      script-module-import-static.sub.html: []
      svg-image.sub.html: []
      window-history.sub.html: []
      worker-dedicated-importscripts.sub.html: []
      # `new Worker()` only makes same-origin requests, so we populate its
      # generated tests here.
      worker-dedicated-constructor.sub.html: [{}]

  # Sec-Fetch-Site - direct requests
  - all_subtests:
      headerName: sec-fetch-site
      filename_flags: [https]
    common_axis:
      - description: Same origin
        origins: [httpsOrigin]
        expected: same-origin
      - description: Cross-site
        origins: [httpsCrossSite]
        expected: cross-site
      - description: Same site
        origins: [httpsSameSite]
        expected: same-site
    template_axes:
      # Unused
      # - the request mode of all "classic" worker scripts is set to
      #   "same-origin"
      #   https://html.spec.whatwg.org/#fetch-a-classic-worker-script
      # - the request mode of all "top-level "module" worker scripts is set to
      #   "same-origin":
      #   https://html.spec.whatwg.org/#fetch-a-single-module-script
      worker-dedicated-constructor.sub.html: []

      audioworklet.https.sub.html: [{}]
      css-images.sub.html:
        - filename_flags: [tentative]
      css-font-face.sub.html:
        - filename_flags: [tentative]
      element-a.sub.html: [{}]
      element-area.sub.html: [{}]
      element-audio.sub.html: [{}]
      element-embed.sub.html: [{}]
      element-frame.sub.html: [{}]
      element-iframe.sub.html: [{}]
      element-img.sub.html:
        - sourceAttr: src
        - sourceAttr: srcset
      element-img-environment-change.sub.html: [{}]
      element-input-image.sub.html: [{}]
      element-link-icon.sub.html: [{}]
      element-link-prefetch.optional.sub.html: [{}]
      element-meta-refresh.optional.sub.html: [{}]
      element-picture.sub.html: [{}]
      element-script.sub.html:
        - {}
        - elementAttrs: { type: module }
      element-video.sub.html: [{}]
      element-video-poster.sub.html: [{}]
      fetch.sub.html: [{ init: { mode: no-cors } }]
      fetch-via-serviceworker.https.sub.html: [{ init: { mode: no-cors } }]
      form-submission.sub.html:
        - method: GET
        - method: POST
      header-link.sub.html:
        - rel: icon
        - rel: stylesheet
      header-refresh.optional.sub.html: [{}]
      window-location.sub.html: [{}]
      script-module-import-dynamic.sub.html: [{}]
      script-module-import-static.sub.html: [{}]
      serviceworker.https.sub.html: [{}]
      svg-image.sub.html: [{}]
      window-history.sub.html: [{}]
      worker-dedicated-importscripts.sub.html: [{}]

  # Sec-Fetch-Site - redirection from HTTP
  - all_subtests:
      headerName: sec-fetch-site
      filename_flags: []
    common_axis:
      - description: HTTPS downgrade (header not sent)
        origins: [httpsOrigin, httpOrigin]
        expected: NULL
      - description: HTTPS upgrade
        origins: [httpOrigin, httpsOrigin]
        expected: cross-site
      - description: HTTPS downgrade-upgrade
        origins: [httpsOrigin, httpOrigin, httpsOrigin]
        expected: cross-site
    template_axes:
      # Unused
      # The `AudioWorklet` interface is only available in secure contexts
      # https://webaudio.github.io/web-audio-api/#AudioWorklet
      audioworklet.https.sub.html: []
      # Service workers are only available in secure context
      fetch-via-serviceworker.https.sub.html: []
      # Service workers' redirect mode is "error"
      serviceworker.https.sub.html: []
      # Interstitial locations in an HTTP redirect chain are not added to the
      # session history, so these requests cannot be initiated using the
      # History API.
      window-history.sub.html: []
      # Unused
      # - the request mode of all "classic" worker scripts is set to
      #   "same-origin"
      #   https://html.spec.whatwg.org/#fetch-a-classic-worker-script
      # - the request mode of all "top-level "module" worker scripts is set to
      #   "same-origin":
      #   https://html.spec.whatwg.org/#fetch-a-single-module-script
      worker-dedicated-constructor.sub.html: []

      css-images.sub.html:
        - filename_flags: [tentative]
      css-font-face.sub.html:
        - filename_flags: [tentative]
      element-a.sub.html: [{}]
      element-area.sub.html: [{}]
      element-audio.sub.html: [{}]
      element-embed.sub.html: [{}]
      element-frame.sub.html: [{}]
      element-iframe.sub.html: [{}]
      element-img.sub.html:
        - sourceAttr: src
        - sourceAttr: srcset
      element-img-environment-change.sub.html: [{}]
      element-input-image.sub.html: [{}]
      element-link-icon.sub.html: [{}]
      element-link-prefetch.optional.sub.html: [{}]
      element-meta-refresh.optional.sub.html: [{}]
      element-picture.sub.html: [{}]
      element-script.sub.html:
        - {}
        - elementAttrs: { type: module }
      element-video.sub.html: [{}]
      element-video-poster.sub.html: [{}]
      fetch.sub.html: [{}]
      form-submission.sub.html:
        - method: GET
        - method: POST
      header-link.sub.html:
        - rel: icon
        - rel: stylesheet
      header-refresh.optional.sub.html: [{}]
      window-location.sub.html: [{}]
      script-module-import-dynamic.sub.html: [{}]
      script-module-import-static.sub.html: [{}]
      svg-image.sub.html: [{}]
      worker-dedicated-importscripts.sub.html: [{}]

  # Sec-Fetch-Site - redirection from HTTPS
  - all_subtests:
      headerName: sec-fetch-site
      filename_flags: [https]
    common_axis:
      - description: Same-Origin -> Cross-Site -> Same-Origin redirect
        origins: [httpsOrigin, httpsCrossSite, httpsOrigin]
        expected: cross-site
      - description: Same-Origin -> Same-Site -> Same-Origin redirect
        origins: [httpsOrigin, httpsSameSite, httpsOrigin]
        expected: same-site
      - description: Cross-Site -> Same Origin
        origins: [httpsCrossSite, httpsOrigin]
        expected: cross-site
      - description: Cross-Site -> Same-Site
        origins: [httpsCrossSite, httpsSameSite]
        expected: cross-site
      - description: Cross-Site -> Cross-Site
        origins: [httpsCrossSite, httpsCrossSite]
        expected: cross-site
      - description: Same-Origin -> Same Origin
        origins: [httpsOrigin, httpsOrigin]
        expected: same-origin
      - description: Same-Origin -> Same-Site
        origins: [httpsOrigin, httpsSameSite]
        expected: same-site
      - description: Same-Origin -> Cross-Site
        origins: [httpsOrigin, httpsCrossSite]
        expected: cross-site
      - description: Same-Site -> Same Origin
        origins: [httpsSameSite, httpsOrigin]
        expected: same-site
      - description: Same-Site -> Same-Site
        origins: [httpsSameSite, httpsSameSite]
        expected: same-site
      - description: Same-Site -> Cross-Site
        origins: [httpsSameSite, httpsCrossSite]
        expected: cross-site
    template_axes:
      # Service Workers' redirect mode is "error"
      serviceworker.https.sub.html: []
      # Interstitial locations in an HTTP redirect chain are not added to the
      # session history, so these requests cannot be initiated using the
      # History API.
      window-history.sub.html: []
      # Unused
      # - the request mode of all "classic" worker scripts is set to
      #   "same-origin"
      #   https://html.spec.whatwg.org/#fetch-a-classic-worker-script
      # - the request mode of all "top-level "module" worker scripts is set to
      #   "same-origin":
      #   https://html.spec.whatwg.org/#fetch-a-single-module-script
      worker-dedicated-constructor.sub.html: []

      audioworklet.https.sub.html: [{}]
      css-images.sub.html:
        - filename_flags: [tentative]
      css-font-face.sub.html:
        - filename_flags: [tentative]
      element-a.sub.html: [{}]
      element-area.sub.html: [{}]
      element-audio.sub.html: [{}]
      element-embed.sub.html: [{}]
      element-frame.sub.html: [{}]
      element-iframe.sub.html: [{}]
      element-img.sub.html:
        - sourceAttr: src
        - sourceAttr: srcset
      element-img-environment-change.sub.html: [{}]
      element-input-image.sub.html: [{}]
      element-link-icon.sub.html: [{}]
      element-link-prefetch.optional.sub.html: [{}]
      element-meta-refresh.optional.sub.html: [{}]
      element-picture.sub.html: [{}]
      element-script.sub.html:
        - {}
        - elementAttrs: { type: module }
      element-video.sub.html: [{}]
      element-video-poster.sub.html: [{}]
      fetch.sub.html: [{ init: { mode: no-cors } }]
      fetch-via-serviceworker.https.sub.html: [{ init: { mode: no-cors } }]
      form-submission.sub.html:
        - method: GET
        - method: POST
      header-link.sub.html:
        - rel: icon
        - rel: stylesheet
      header-refresh.optional.sub.html: [{}]
      window-location.sub.html: [{}]
      script-module-import-dynamic.sub.html: [{}]
      script-module-import-static.sub.html: [{}]
      svg-image.sub.html: [{}]
      worker-dedicated-importscripts.sub.html: [{}]

  # Sec-Fetch-Site - redirection with mixed content
  # These tests verify the effect that redirection has on the request's "site".
  # The initial request must be made to a resource that is "same-site" with its
  # origin. This avoids false positives because if the request were made to a
  # cross-site resource, the value of "cross-site" would be assigned regardless
  # of the subseqent redirection.
  #
  # Because these conditions necessarily warrant mixed content, only templates
  # which can be configured to allow mixed content [1] can be used.
  #
  # [1] https://w3c.github.io/webappsec-mixed-content/#should-block-fetch

  - common_axis:
      - description: HTTPS downgrade-upgrade
        headerName: sec-fetch-site
        origins: [httpsOrigin, httpOrigin, httpsOrigin]
        expected: cross-site
        filename_flags: [https]
    template_axes:
      # Mixed Content considers only a small subset of requests as
      # "optionally-blockable." These are the only requests that can be tested
      # for the "downgrade-upgrade" scenario, so all other templates must be
      # explicitly ignored.
      audioworklet.https.sub.html: []
      css-font-face.sub.html: []
      element-embed.sub.html: []
      element-frame.sub.html: []
      element-iframe.sub.html: []
      element-img-environment-change.sub.html: []
      element-link-icon.sub.html: []
      element-link-prefetch.optional.sub.html: []
      element-picture.sub.html: []
      element-script.sub.html: []
      fetch.sub.html: []
      fetch-via-serviceworker.https.sub.html: []
      header-link.sub.html: []
      script-module-import-static.sub.html: []
      script-module-import-dynamic.sub.html: []
      # Service Workers' redirect mode is "error"
      serviceworker.https.sub.html: []
      # Interstitial locations in an HTTP redirect chain are not added to the
      # session history, so these requests cannot be initiated using the
      # History API.
      window-history.sub.html: []
      worker-dedicated-constructor.sub.html: []
      worker-dedicated-importscripts.sub.html: []
      # Avoid duplicate subtest for 'sec-fetch-site - HTTPS downgrade-upgrade'
      css-images.sub.html:
        - filename_flags: [tentative]
      element-a.sub.html: [{}]
      element-area.sub.html: [{}]
      element-audio.sub.html: [{}]
      element-img.sub.html:
        # srcset omitted because it is not "optionally-blockable"
        # https://w3c.github.io/webappsec-mixed-content/#category-optionally-blockable
        - sourceAttr: src
      element-input-image.sub.html: [{}]
      element-meta-refresh.optional.sub.html: [{}]
      element-video.sub.html: [{}]
      element-video-poster.sub.html: [{}]
      form-submission.sub.html:
        - method: GET
        - method: POST
      header-refresh.optional.sub.html: [{}]
      svg-image.sub.html: [{}]
      window-location.sub.html: [{}]

  # Sec-Fetch-Mode
  # These tests are served over HTTPS so the induced requests will be both
  # same-origin with the document [1] and a potentially-trustworthy URL [2].
  #
  # [1] https://html.spec.whatwg.org/multipage/origin.html#same-origin
  # [2] https://w3c.github.io/webappsec-secure-contexts/#potentially-trustworthy-url
  - common_axis:
      - headerName: sec-fetch-mode
        filename_flags: [https]
        origins: []
    template_axes:
      audioworklet.https.sub.html:
        # https://html.spec.whatwg.org/multipage/webappapis.html#fetch-a-single-module-script
        - expected: cors
      css-images.sub.html:
        - expected: no-cors
          filename_flags: [tentative]
      css-font-face.sub.html:
        - expected: cors
          filename_flags: [tentative]
      element-a.sub.html:
        - expected: navigate
        # https://html.spec.whatwg.org/multipage/links.html#downloading-hyperlinks
        - elementAttrs: {download: ''}
          expected: no-cors
      element-area.sub.html:
        - expected: navigate
        # https://html.spec.whatwg.org/multipage/links.html#downloading-hyperlinks
        - elementAttrs: {download: ''}
          expected: no-cors
      element-audio.sub.html:
        - expected: no-cors
        - expected: cors
          elementAttrs: { crossorigin: '' }
        - expected: cors
          elementAttrs: { crossorigin: anonymous }
        - expected: cors
          elementAttrs: { crossorigin: use-credentials }
      element-embed.sub.html:
        - expected: no-cors
      element-frame.sub.html:
        - expected: navigate
      element-iframe.sub.html:
        - expected: navigate
      element-img.sub.html:
        - sourceAttr: src
          expected: no-cors
        - sourceAttr: src
          expected: cors
          elementAttrs: { crossorigin: '' }
        - sourceAttr: src
          expected: cors
          elementAttrs: { crossorigin: anonymous }
        - sourceAttr: src
          expected: cors
          elementAttrs: { crossorigin: use-credentials }
        - sourceAttr: srcset
          expected: no-cors
        - sourceAttr: srcset
          expected: cors
          elementAttrs: { crossorigin: '' }
        - sourceAttr: srcset
          expected: cors
          elementAttrs: { crossorigin: anonymous }
        - sourceAttr: srcset
          expected: cors
          elementAttrs: { crossorigin: use-credentials }
      element-img-environment-change.sub.html:
        - expected: no-cors
        - expected: cors
          elementAttrs: { crossorigin: '' }
        - expected: cors
          elementAttrs: { crossorigin: anonymous }
        - expected: cors
          elementAttrs: { crossorigin: use-credentials }
      element-input-image.sub.html:
        - expected: no-cors
      element-link-icon.sub.html:
        - expected: no-cors
        - expected: cors
          elementAttrs: { crossorigin: '' }
        - expected: cors
          elementAttrs: { crossorigin: anonymous }
        - expected: cors
          elementAttrs: { crossorigin: use-credentials }
      element-link-prefetch.optional.sub.html:
        - expected: no-cors
        - expected: cors
          elementAttrs: { crossorigin: '' }
        - expected: cors
          elementAttrs: { crossorigin: anonymous }
        - expected: cors
          elementAttrs: { crossorigin: use-credentials }
      element-meta-refresh.optional.sub.html:
        - expected: navigate
      element-picture.sub.html:
        - expected: no-cors
        - expected: cors
          elementAttrs: { crossorigin: '' }
        - expected: cors
          elementAttrs: { crossorigin: anonymous }
        - expected: cors
          elementAttrs: { crossorigin: use-credentials }
      element-script.sub.html:
        - expected: no-cors
        - expected: cors
          elementAttrs: { type: module }
        - expected: cors
          elementAttrs: { crossorigin: '' }
        - expected: cors
          elementAttrs: { crossorigin: anonymous }
        - expected: cors
          elementAttrs: { crossorigin: use-credentials }
      element-video.sub.html:
        - expected: no-cors
        - expected: cors
          elementAttrs: { crossorigin: '' }
        - expected: cors
          elementAttrs: { crossorigin: anonymous }
        - expected: cors
          elementAttrs: { crossorigin: use-credentials }
      element-video-poster.sub.html:
        - expected: no-cors
      fetch.sub.html:
        - expected: cors
        - expected: cors
          init: { mode: cors }
        - expected: no-cors
          init: { mode: no-cors }
        - expected: same-origin
          init: { mode: same-origin }
      fetch-via-serviceworker.https.sub.html:
        - expected: cors
        - expected: cors
          init: { mode: cors }
        - expected: no-cors
          init: { mode: no-cors }
        - expected: same-origin
          init: { mode: same-origin }
      form-submission.sub.html:
        - method: GET
          expected: navigate
        - method: POST
          expected: navigate
      header-link.sub.html:
        - rel: icon
          expected: no-cors
        - rel: stylesheet
          expected: no-cors
      header-refresh.optional.sub.html:
        - expected: navigate
      window-history.sub.html:
        - expected: navigate
      window-location.sub.html:
        - expected: navigate
      script-module-import-dynamic.sub.html:
        - expected: cors
      script-module-import-static.sub.html:
        - expected: cors
      # https://svgwg.org/svg2-draft/linking.html#processingURL-fetch
      svg-image.sub.html:
        - expected: no-cors
        - expected: cors
          elementAttrs: { crossorigin: '' }
        - expected: cors
          elementAttrs: { crossorigin: anonymous }
        - expected: cors
          elementAttrs: { crossorigin: use-credentials }
      serviceworker.https.sub.html:
        - expected: same-origin
          options: { type: 'classic' }
        # https://github.com/whatwg/html/pull/5875
        - expected: same-origin
      worker-dedicated-constructor.sub.html:
        - expected: same-origin
        - options: { type: module }
          expected: same-origin
      worker-dedicated-importscripts.sub.html:
        - expected: no-cors

  # Sec-Fetch-Dest
  - common_axis:
      - headerName: sec-fetch-dest
        filename_flags: [https]
        origins: []
    template_axes:
      audioworklet.https.sub.html:
        # https://github.com/WebAudio/web-audio-api/issues/2203
        - expected: audioworklet
      css-images.sub.html:
        - expected: image
          filename_flags: [tentative]
      css-font-face.sub.html:
        - expected: font
          filename_flags: [tentative]
      element-a.sub.html:
        - expected: document
        # https://html.spec.whatwg.org/multipage/links.html#downloading-hyperlinks
        - elementAttrs: {download: ''}
          expected: empty
      element-area.sub.html:
        - expected: document
        # https://html.spec.whatwg.org/multipage/links.html#downloading-hyperlinks
        - elementAttrs: {download: ''}
          expected: empty
      element-audio.sub.html:
        - expected: audio
      element-embed.sub.html:
        - expected: embed
      element-frame.sub.html:
        # https://github.com/whatwg/html/pull/4976
        - expected: frame
      element-iframe.sub.html:
        # https://github.com/whatwg/html/pull/4976
        - expected: iframe
      element-img.sub.html:
        - sourceAttr: src
          expected: image
        - sourceAttr: srcset
          expected: image
      element-img-environment-change.sub.html:
        - expected: image
      element-input-image.sub.html:
        - expected: image
      element-link-icon.sub.html:
        - expected: empty
      element-link-prefetch.optional.sub.html:
        - expected: empty
        - elementAttrs: { as: audio }
          expected: audio
        - elementAttrs: { as: document }
          expected: document
        - elementAttrs: { as: embed }
          expected: embed
        - elementAttrs: { as: fetch }
          expected: fetch
        - elementAttrs: { as: font }
          expected: font
        - elementAttrs: { as: image }
          expected: image
        - elementAttrs: { as: object }
          expected: object
        - elementAttrs: { as: script }
          expected: script
        - elementAttrs: { as: style }
          expected: style
        - elementAttrs: { as: track }
          expected: track
        - elementAttrs: { as: video }
          expected: video
        - elementAttrs: { as: worker }
          expected: worker
      element-meta-refresh.optional.sub.html:
        - expected: document
      element-picture.sub.html:
        - expected: image
      element-script.sub.html:
        - expected: script
      element-video.sub.html:
        - expected: video
      element-video-poster.sub.html:
        - expected: image
      fetch.sub.html:
        - expected: empty
      fetch-via-serviceworker.https.sub.html:
        - expected: empty
      form-submission.sub.html:
        - method: GET
          expected: document
        - method: POST
          expected: document
      header-link.sub.html:
        - rel: icon
          expected: empty
        - rel: stylesheet
          filename_flags: [tentative]
          expected: style
      header-refresh.optional.sub.html:
        - expected: document
      window-history.sub.html:
        - expected: document
      window-location.sub.html:
        - expected: document
      script-module-import-dynamic.sub.html:
        - expected: script
      script-module-import-static.sub.html:
        - expected: script
      serviceworker.https.sub.html:
        - expected: serviceworker
      # Implemented as "image" in Chromium and Firefox, but specified as
      # "empty"
      # https://github.com/w3c/svgwg/issues/782
      svg-image.sub.html:
        - expected: empty
      worker-dedicated-constructor.sub.html:
        - expected: worker
        - options: { type: module }
          expected: worker
      worker-dedicated-importscripts.sub.html:
        - expected: script

  # Sec-Fetch-User
  - common_axis:
      - headerName: sec-fetch-user
        filename_flags: [https]
        origins: []
    template_axes:
      audioworklet.https.sub.html:
        - expected: NULL
      css-images.sub.html:
        - expected: NULL
          filename_flags: [tentative]
      css-font-face.sub.html:
        - expected: NULL
          filename_flags: [tentative]
      element-a.sub.html:
        - expected: NULL
        - userActivated: TRUE
          expected: ?1
      element-area.sub.html:
        - expected: NULL
        - userActivated: TRUE
          expected: ?1
      element-audio.sub.html:
        - expected: NULL
      element-embed.sub.html:
        - expected: NULL
      element-frame.sub.html:
        - expected: NULL
        - userActivated: TRUE
          expected: ?1
      element-iframe.sub.html:
        - expected: NULL
        - userActivated: TRUE
          expected: ?1
      element-img.sub.html:
        - sourceAttr: src
          expected: NULL
        - sourceAttr: srcset
          expected: NULL
      element-img-environment-change.sub.html:
        - expected: NULL
      element-input-image.sub.html:
        - expected: NULL
      element-link-icon.sub.html:
        - expected: NULL
      element-link-prefetch.optional.sub.html:
        - expected: NULL
      element-meta-refresh.optional.sub.html:
        - expected: NULL
      element-picture.sub.html:
        - expected: NULL
      element-script.sub.html:
        - expected: NULL
      element-video.sub.html:
        - expected: NULL
      element-video-poster.sub.html:
        - expected: NULL
      fetch.sub.html:
        - expected: NULL
      fetch-via-serviceworker.https.sub.html:
        - expected: NULL
      form-submission.sub.html:
        - method: GET
          expected: NULL
        - method: GET
          userActivated: TRUE
          expected: ?1
        - method: POST
          expected: NULL
        - method: POST
          userActivated: TRUE
          expected: ?1
      header-link.sub.html:
        - rel: icon
          expected: NULL
        - rel: stylesheet
          expected: NULL
      header-refresh.optional.sub.html:
        - expected: NULL
      window-history.sub.html:
        - expected: NULL
      window-location.sub.html:
        - expected: NULL
        - userActivated: TRUE
          expected: ?1
      script-module-import-dynamic.sub.html:
        - expected: NULL
      script-module-import-static.sub.html:
        - expected: NULL
      serviceworker.https.sub.html:
        - expected: NULL
      svg-image.sub.html:
        - expected: NULL
      worker-dedicated-constructor.sub.html:
        - expected: NULL
        - options: { type: module }
          expected: NULL
      worker-dedicated-importscripts.sub.html:
        - expected: NULL