ladybird/Tests/LibWeb/Text/expected/Fetch
Andreas Kling 8c59b6281d LibWeb: Ignore stale link fetch body callbacks
When a link element starts a replacement fetch, the old response body
can already have queued its consume-body task. stop_fetch() clears the
fetch algorithms for future work, so that late task re-read an empty
callback and tripped AK::Function's wrapper assertion.

Keep fetch_response_handover() tied to the algorithms object it
selected when creating the consume-body steps. Then make
HTMLLinkElement apply the HTML stale-resource check explicitly with a
fetch generation, so results from superseded link fetches return before
processing the resource.

Add a text test that replaces a stylesheet data URL and waits for the
replacement stylesheet's load event. This covers stale body callbacks
and verifies that superseded stylesheet results do not apply.
2026-05-13 20:54:10 +02:00
..
empty-header-value.txt LibWeb: Include empty header values when joining duplicated headers 2025-11-26 21:22:35 -05:00
fetch-controller-abort-with-body-does-not-crash-with-timeout.txt LibWeb/Fetch: Enable callbacks in the abort signal algorithm callback 2025-08-26 16:29:35 +02:00
fetch-controller-abort.txt LibWeb: Implement FetchController::abort() 2024-11-24 11:11:44 +01:00
fetch-cors-credentials-flag.txt Tests: Add test for credentials flag in fetch 2025-09-24 10:12:56 +01:00
fetch-headers-non-ascii.txt LibWeb: Ensure Headers API can handle non-ascii characters 2024-12-11 16:40:36 -07:00
fetch-request-url-search-params.txt Tests/LibWeb: Move existing Fetch tests in under the Fetch folder 2024-07-23 09:02:21 +02:00
fetch-response-content-type.txt Tests/LibWeb: Move existing Fetch tests in under the Fetch folder 2024-07-23 09:02:21 +02:00
fetch-response-url-encoded.txt
fetch-timed-out-request.txt Tests/LibWeb: Move existing Fetch tests in under the Fetch folder 2024-07-23 09:02:21 +02:00
header-whitespace-normalization.txt RequestServer: Only trim HTTP whitespace from response headers 2026-02-26 20:01:13 +01:00
image-accept-header.txt LibWeb: Add AVIF and WebP to the Accept header for images 2026-04-25 08:49:04 +02:00
multipart-form-data-crlf.txt LibWeb: Do not require multipart form data to end with CRLF 2025-09-15 18:28:48 +02:00
network-error-on-connection-failure.txt RequestServer: Check for curl errors before sending headers 2026-03-12 13:17:18 -04:00
prevent-file-from-fetching-file.txt Tests/LibWeb: Run test-web tests with opaque origin file:// URLs 2026-03-01 01:04:10 +01:00
prevent-file-from-xmlhttprequest-file.txt LibWeb/Fetch: Prevent file:// URLs from calling fetch() API 2026-02-21 23:00:57 +01:00
request-constructor-does-not-throw-on-null-body-with-get-or-head-request.txt LibWeb: Allow null for optional, nullable, no default value union types 2025-02-22 18:45:27 +01:00
stale-link-fetch-body-callback.txt LibWeb: Ignore stale link fetch body callbacks 2026-05-13 20:54:10 +02:00