Branch: refs/heads/main Home: https://github.com/WebKit/WebKit Commit: 40089a95fed02486c5a38b2c831b85dca7f09e1c https://github.com/WebKit/WebKit/commit/40089a95fed02486c5a38b2c831b85dca7f09e1c Author: Luke Warlow <lwar...@igalia.com> Date: 2024-03-28 (Thu, 28 Mar 2024)
Changed paths: M LayoutTests/imported/w3c/web-platform-tests/trusted-types/TrustedTypePolicyFactory-getPropertyType-expected.txt M LayoutTests/imported/w3c/web-platform-tests/trusted-types/TrustedTypePolicyFactory-getPropertyType.html M LayoutTests/imported/w3c/web-platform-tests/trusted-types/TrustedTypePolicyFactory-metadata-expected.txt M Source/WebCore/dom/TrustedTypePolicyFactory.cpp Log Message: ----------- TrustedTypesPolicyFactory getPropertyType returns TrustedScript for event handlers https://bugs.webkit.org/show_bug.cgi?id=271822 Reviewed by Anne van Kesteren. Previously getPropertyType would return TrustedScript for event handlers. This patch fixes it so that it correctly returns null. Only getAttributeType should handle event handlers. Also adds a test to check for this. * LayoutTests/imported/w3c/web-platform-tests/trusted-types/TrustedTypePolicyFactory-getPropertyType-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/trusted-types/TrustedTypePolicyFactory-getPropertyType.html: * LayoutTests/imported/w3c/web-platform-tests/trusted-types/TrustedTypePolicyFactory-metadata-expected.txt: * Source/WebCore/dom/TrustedTypePolicyFactory.cpp: (WebCore::TrustedTypePolicyFactory::getPropertyType const): Canonical link: https://commits.webkit.org/276788@main To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications _______________________________________________ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes