Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 1e726acd0ec15ba739f634987e08639f60085a61
https://github.com/WebKit/WebKit/commit/1e726acd0ec15ba739f634987e08639f60085a61
Author: Agustín Rodríguez <[email protected]>
Date: 2026-10-10 (Sat, 10 Oct 2026)
Changed paths:
A
LayoutTests/http/tests/preload/modulepreload-reload-after-failure-expected.txt
A LayoutTests/http/tests/preload/modulepreload-reload-after-failure.html
A LayoutTests/http/tests/preload/resources/fail-once-module.py
M Source/WebCore/loader/cache/CachedResourceLoader.cpp
Log Message:
-----------
Retry failed modulepreload resources
https://bugs.webkit.org/show_bug.cgi?id=270357
Reviewed by Chris Dumez.
A failed modulepreload remains marked as preloaded in the memory cache.
determineRevalidationPolicy() then returns Use from its preload shortcuts before
reaching the generic error-state reload check, so a later import() reuses the
failed resource and rejects without making a new request. Reload failed preloads
before either shortcut can reuse them.
Test: LayoutTests/http/tests/preload/modulepreload-reload-after-failure.html
*
LayoutTests/http/tests/preload/modulepreload-reload-after-failure-expected.txt:
Added.
* LayoutTests/http/tests/preload/modulepreload-reload-after-failure.html: Added.
* LayoutTests/http/tests/preload/resources/fail-once-module.py: Added.
* Source/WebCore/loader/cache/CachedResourceLoader.cpp:
(WebCore::CachedResourceLoader::determineRevalidationPolicy const):
Canonical link: https://commits.webkit.org/323305@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications