Implement basics of link preloading (#37036)

These changes allow a minimal set of checks for font-src
CSP checks to pass.

Part of #4577
Part of #35035

---------

Signed-off-by: Tim van der Lippe <tvanderlippe@gmail.com>
This commit is contained in:
Tim van der Lippe 2025-05-29 13:26:27 +02:00 committed by GitHub
parent 9dc1391bef
commit 36e4886da1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
174 changed files with 2814 additions and 1097 deletions

View file

@ -0,0 +1,43 @@
[supported-as-values.html?as=track&expected=1]
[Test the supported value for <link rel=preload as="...">]
expected: FAIL
[supported-as-values.html?as=iframe&expected=0]
[supported-as-values.html?as=video&expected=0]
[supported-as-values.html?as=font&expected=1]
[Test the supported value for <link rel=preload as="...">]
expected: FAIL
[supported-as-values.html?as=fetch&expected=1]
[Test the supported value for <link rel=preload as="...">]
expected: FAIL
[supported-as-values.html?as=object&expected=0]
[supported-as-values.html?as=image&expected=1]
[Test the supported value for <link rel=preload as="...">]
expected: FAIL
[supported-as-values.html?as=garbagefoobar&expected=0]
[supported-as-values.html?as=style&expected=1]
[Test the supported value for <link rel=preload as="...">]
expected: FAIL
[supported-as-values.html?as=audio&expected=0]
[supported-as-values.html?as=script&expected=1]
[Test the supported value for <link rel=preload as="...">]
expected: FAIL
[supported-as-values.html?as=json&expected=0]
[supported-as-values.html?as=worklet&expected=0]