Move LinkProcessingOptions into separate file (#39033)

This makes future implementations easier where we will reuse most of
this code to parse Link headers.

Part of #35035

Signed-off-by: Tim van der Lippe <tvanderlippe@gmail.com>
This commit is contained in:
Tim van der Lippe 2025-09-02 18:31:39 +02:00 committed by GitHub
parent efe9ea2306
commit a1f9e3e133
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
23 changed files with 311 additions and 573 deletions

View file

@ -1,47 +1,11 @@
[preload-resource-match.https.html]
expected: TIMEOUT
[Loading image (no-cors) with link (anonymous) should discard the preloaded response]
expected: FAIL
[Loading image (no-cors) with link (use-credentials) should discard the preloaded response]
expected: FAIL
[Loading image (anonymous) with link (no-cors) should discard the preloaded response]
expected: FAIL
[Loading image (anonymous) with link (use-credentials) should discard the preloaded response]
expected: FAIL
[Loading image (use-credentials) with link (no-cors) should discard the preloaded response]
expected: FAIL
[Loading image (use-credentials) with link (anonymous) should discard the preloaded response]
expected: FAIL
[Loading font (anonymous) with link (no-cors) should discard the preloaded response]
expected: FAIL
[Loading font (anonymous) with link (anonymous) should reuse the preloaded response]
expected: FAIL
[Loading font (anonymous) with link (use-credentials) should discard the preloaded response]
expected: FAIL
[Loading font (same-origin) with link (same-origin) should reuse the preloaded response]
expected: FAIL
[Loading backgroundImage (no-cors) with link (anonymous) should discard the preloaded response]
expected: FAIL
[Loading backgroundImage (no-cors) with link (use-credentials) should discard the preloaded response]
expected: FAIL
[Loading fetch (same-origin) with link (same-origin) should reuse the preloaded response]
expected: FAIL
[Loading fetch (no-cors) with link (no-cors) should reuse the preloaded response]
expected: FAIL
[Loading fetch (no-cors) with link (anonymous) should discard the preloaded response]
expected: FAIL
@ -51,9 +15,6 @@
[Loading fetch (anonymous) with link (no-cors) should discard the preloaded response]
expected: FAIL
[Loading fetch (anonymous) with link (anonymous) should reuse the preloaded response]
expected: FAIL
[Loading fetch (anonymous) with link (use-credentials) should discard the preloaded response]
expected: FAIL
@ -63,53 +24,8 @@
[Loading fetch (use-credentials) with link (anonymous) should discard the preloaded response]
expected: FAIL
[Loading fetch (use-credentials) with link (use-credentials) should reuse the preloaded response]
expected: FAIL
[Loading script (no-cors) with link (anonymous) should discard the preloaded response]
expected: FAIL
[Loading script (no-cors) with link (use-credentials) should discard the preloaded response]
expected: FAIL
[Loading script (anonymous) with link (no-cors) should discard the preloaded response]
expected: FAIL
[Loading script (anonymous) with link (use-credentials) should discard the preloaded response]
expected: FAIL
[Loading script (use-credentials) with link (no-cors) should discard the preloaded response]
expected: FAIL
[Loading script (use-credentials) with link (anonymous) should discard the preloaded response]
expected: TIMEOUT
[Loading script (use-credentials) with link (use-credentials) should reuse the preloaded response]
expected: NOTRUN
[Loading module (same-origin) with link (same-origin) should reuse the preloaded response]
expected: NOTRUN
[Loading module (no-cors) with link (no-cors) should reuse the preloaded response]
expected: NOTRUN
[Loading module (no-cors) with link (anonymous) should discard the preloaded response]
expected: NOTRUN
[Loading module (no-cors) with link (use-credentials) should discard the preloaded response]
expected: NOTRUN
[Loading module (anonymous) with link (no-cors) should discard the preloaded response]
expected: NOTRUN
[Loading module (anonymous) with link (anonymous) should reuse the preloaded response]
expected: NOTRUN
[Loading module (anonymous) with link (use-credentials) should discard the preloaded response]
expected: NOTRUN
[Loading module (use-credentials) with link (no-cors) should discard the preloaded response]
expected: NOTRUN
expected: TIMEOUT
[Loading module (use-credentials) with link (anonymous) should discard the preloaded response]
expected: NOTRUN
@ -146,3 +62,21 @@
[Loading style (use-credentials) with link (use-credentials) should reuse the preloaded response]
expected: NOTRUN
[Loading image (same-origin) with link (same-origin) should reuse the preloaded response]
expected: FAIL
[Loading image (no-cors) with link (no-cors) should reuse the preloaded response]
expected: FAIL
[Loading image (anonymous) with link (anonymous) should reuse the preloaded response]
expected: FAIL
[Loading image (use-credentials) with link (use-credentials) should reuse the preloaded response]
expected: FAIL
[Loading backgroundImage (no-cors) with link (no-cors) should reuse the preloaded response]
expected: FAIL
[Loading backgroundImage (same-origin) with link (same-origin) should reuse the preloaded response]
expected: FAIL