Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: f1a37fa5d05b1511ee773111a901032c7d25fb3b
https://github.com/WebKit/WebKit/commit/f1a37fa5d05b1511ee773111a901032c7d25fb3b
Author: Luke Warlow <[email protected]>
Date: 2025-10-02 (Thu, 02 Oct 2025)
Changed paths:
M
LayoutTests/imported/w3c/web-platform-tests/trusted-types/policy-without-return-value.sub-expected.txt
M
LayoutTests/imported/w3c/web-platform-tests/trusted-types/policy-without-return-value.sub.html
R
LayoutTests/platform/glib/imported/w3c/web-platform-tests/trusted-types/policy-without-return-value.sub-expected.txt
M Source/WebCore/dom/TrustedTypePolicy.cpp
Log Message:
-----------
Trusted Types incorrectly handles null or undefined policy values
https://bugs.webkit.org/show_bug.cgi?id=299958
Reviewed by Ryosuke Niwa.
We previously only handled this case for processing default policies,
this means that some policy values are left as null strings when they should be
empty strings.
We fix this by converting to an empty string within the Trusted Type creation
steps.
https://w3c.github.io/trusted-types/dist/spec/#create-a-trusted-type-algorithm
- step 4
*
LayoutTests/imported/w3c/web-platform-tests/trusted-types/policy-without-return-value.sub-expected.txt:
*
LayoutTests/imported/w3c/web-platform-tests/trusted-types/policy-without-return-value.sub.html:
* Source/WebCore/dom/TrustedTypePolicy.cpp:
(WebCore::TrustedTypePolicy::createHTML):
(WebCore::TrustedTypePolicy::createScript):
(WebCore::TrustedTypePolicy::createScriptURL):
*
LayoutTests/platform/glib/imported/w3c/web-platform-tests/trusted-types/policy-without-return-value.sub-expected.txt:
Removed.
Canonical link: https://commits.webkit.org/300892@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes