Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: d69efcab765ad5504bffb197e272af1fa5ebf7bc
https://github.com/WebKit/WebKit/commit/d69efcab765ad5504bffb197e272af1fa5ebf7bc
Author: Yoav Weiss <[email protected]>
Date: 2025-12-15 (Mon, 15 Dec 2025)
Changed paths:
M LayoutTests/TestExpectations
M
LayoutTests/imported/w3c/web-platform-tests/speculation-rules/prefetch/clear-prefetch-cache-after-clear-site-data-cache.https-expected.txt
M
LayoutTests/imported/w3c/web-platform-tests/speculation-rules/prefetch/clear-prefetch-cache-after-clear-site-data-cache.https.html
M Source/WebCore/loader/DocumentLoader.cpp
M Source/WebCore/loader/DocumentPrefetcher.cpp
M Source/WebCore/loader/DocumentPrefetcher.h
M Source/WebCore/loader/SubresourceLoader.cpp
M Source/WebCore/platform/network/HTTPParsers.cpp
M Source/WebCore/platform/network/HTTPParsers.h
Log Message:
-----------
SpeculationRules - Support Clear-Site-Data
https://bugs.webkit.org/show_bug.cgi?id=303826
Reviewed by Alex Christensen.
This adds support for `Clear-Site-Data: prefetchCache`.
No new tests, but existing tests progress.
* LayoutTests/TestExpectations: Removed skipped test.
*
LayoutTests/imported/w3c/web-platform-tests/speculation-rules/prefetch/clear-prefetch-cache-after-clear-site-data-cache.https-expected.txt:
Progression.
*
LayoutTests/imported/w3c/web-platform-tests/speculation-rules/prefetch/clear-prefetch-cache-after-clear-site-data-cache.https.html:
* Source/WebCore/loader/DocumentLoader.cpp:
(WebCore::DocumentLoader::responseReceived): Clear prefetchCache after parsing
Clear-Site-Data headers.
* Source/WebCore/loader/DocumentPrefetcher.cpp:
(WebCore::DocumentPrefetcher::clearPrefetchedResourcesForOrigin): Implement the
clearing of prefetched resources.
* Source/WebCore/loader/DocumentPrefetcher.h:
* Source/WebCore/loader/SubresourceLoader.cpp:
(WebCore::SubresourceLoader::didReceiveResponse): Clear prefetchCache after
parsing Clear-Site-Data headers.
* Source/WebCore/platform/network/HTTPParsers.cpp:
(WebCore::parseClearSiteDataHeader): Add prefetchCache handling.
* Source/WebCore/platform/network/HTTPParsers.h:
Canonical link: https://commits.webkit.org/304470@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications