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,102 @@
[preload-error.sub.html]
[404 (image): main]
expected: FAIL
[CORS-error (image): main]
expected: FAIL
[CSP-error (image): preload events]
expected: FAIL
[CSP-error (image): main]
expected: FAIL
[CORS-error (style): main]
expected: FAIL
[CSP-error (style): preload events]
expected: FAIL
[CSP-error (style): main]
expected: FAIL
[CORS-error (script): main]
expected: FAIL
[CSP-error (script): preload events]
expected: FAIL
[CSP-error (script): main]
expected: FAIL
[CORS-error (xhr): main]
expected: FAIL
[CSP-error (xhr): preload events]
expected: FAIL
[CSP-error (xhr): main]
expected: FAIL
[success (fetch): main]
expected: FAIL
[404 (fetch): main]
expected: FAIL
[CORS (fetch): main]
expected: FAIL
[CORS-error (fetch): main]
expected: FAIL
[CSP-error (fetch): preload events]
expected: FAIL
[CSP-error (fetch): main]
expected: FAIL
[MIME-error (style): main]
expected: FAIL
[MIME-blocked (script): main]
expected: FAIL
[MIME-blocked-nosniff (style): preload events]
expected: FAIL
[MIME-blocked-nosniff (style): main]
expected: FAIL
[MIME-blocked-nosniff (script): main]
expected: FAIL
[Decode-error (script): main]
expected: FAIL
[success (style): main]
expected: FAIL
[404 (style): main]
expected: FAIL
[CORS (style): main]
expected: FAIL
[success (script): main]
expected: FAIL
[404 (script): main]
expected: FAIL
[success (xhr): main]
expected: FAIL
[404 (xhr): main]
expected: FAIL
[CORS (xhr): main]
expected: FAIL
[Decode-error (style): main]
expected: FAIL