Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 4a3b30232a5565ed188ca9c58633831dbd3b58ac
https://github.com/WebKit/WebKit/commit/4a3b30232a5565ed188ca9c58633831dbd3b58ac
Author: Frédéric Wang Nélar <[email protected]>
Date: 2026-08-04 (Tue, 04 Aug 2026)
Changed paths:
M
LayoutTests/imported/w3c/web-platform-tests/content-security-policy/generic/source-list-wildcard-host-and-port.https.sub-expected.txt
M Source/WebCore/page/csp/ContentSecurityPolicySourceList.cpp
Log Message:
-----------
CSP host-source *:*/path does not work
https://bugs.webkit.org/show_bug.cgi?id=320785
Reviewed by Patrick Griffis.
See https://w3c.github.io/webappsec-csp/#grammardef-host-source
'*/path', '*:80' or '*:*/path' are valid host-source that constrain what
they match, so we shouldn't skip them.
*
LayoutTests/imported/w3c/web-platform-tests/content-security-policy/generic/source-list-wildcard-host-and-port.https.sub-expected.txt:
Update expectation now that the test passes.
* Source/WebCore/page/csp/ContentSecurityPolicySourceList.cpp:
(WebCore::ContentSecurityPolicySourceList::parse): Also take into account
whether a port or path was specified.
Canonical link: https://commits.webkit.org/318612@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications