Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: f006d3e24eebe0b6ca75dc65c939d9ce182af932
https://github.com/WebKit/WebKit/commit/f006d3e24eebe0b6ca75dc65c939d9ce182af932
Author: Sihui Liu <[email protected]>
Date: 2024-01-11 (Thu, 11 Jan 2024)
Changed paths:
M Source/WebCore/html/HTMLLinkElement.cpp
M Tools/TestWebKitAPI/Tests/WebKitCocoa/CreateWebArchive.mm
Log Message:
-----------
Save linked subresources when saving web page resources
https://bugs.webkit.org/show_bug.cgi?id=267372
rdar://120491493
Reviewed by Ryosuke Niwa and BJ Burg.
When collecting subresources URLs, we should include URL of link element if it
is a link to external resource
(https://html.spec.whatwg.org/multipage/links.html#linkTypes), and it may fetch
or cache the linked resource
(https://html.spec.whatwg.org/multipage/semantics.html#fetching-and-processing-a-resource-from-a-link-element).
We
currently only include URL of style sheet.
Update API test: WebArchive.SaveResourcesLink
* Source/WebCore/html/HTMLLinkElement.cpp:
(WebCore::mayFetchResource):
(WebCore::HTMLLinkElement::addSubresourceAttributeURLs const):
* Tools/TestWebKitAPI/Tests/WebKitCocoa/CreateWebArchive.mm:
Canonical link: https://commits.webkit.org/272925@main
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes