Branch: refs/heads/main Home: https://github.com/WebKit/WebKit Commit: 4e8f9225aef76436cdf18015c6037d5810d87fae https://github.com/WebKit/WebKit/commit/4e8f9225aef76436cdf18015c6037d5810d87fae Author: Luke Warlow <lwar...@igalia.com> Date: 2024-05-03 (Fri, 03 May 2024)
Changed paths: M LayoutTests/TestExpectations M LayoutTests/imported/w3c/web-platform-tests/trusted-types/HTMLElement-generic-expected.txt M LayoutTests/imported/w3c/web-platform-tests/trusted-types/block-string-assignment-to-HTMLElement-generic-expected.txt M LayoutTests/imported/w3c/web-platform-tests/trusted-types/default-policy-callback-arguments-expected.txt M LayoutTests/imported/w3c/web-platform-tests/trusted-types/default-policy-callback-arguments.html M LayoutTests/imported/w3c/web-platform-tests/trusted-types/no-require-trusted-types-for-report-only-expected.txt M LayoutTests/imported/w3c/web-platform-tests/trusted-types/require-trusted-types-for-expected.txt M LayoutTests/imported/w3c/web-platform-tests/trusted-types/require-trusted-types-for-report-only-expected.txt M LayoutTests/imported/w3c/web-platform-tests/trusted-types/trusted-types-createHTMLDocument-expected.txt M LayoutTests/platform/glib/imported/w3c/web-platform-tests/trusted-types/HTMLElement-generic-expected.txt A LayoutTests/platform/mac-wk1/imported/w3c/web-platform-tests/trusted-types/HTMLElement-generic-expected.txt A LayoutTests/platform/wpe/imported/w3c/web-platform-tests/trusted-types/HTMLElement-generic-expected.txt M Source/WebCore/dom/TrustedType.cpp M Source/WebCore/dom/TrustedType.h M Source/WebCore/html/HTMLScriptElement.cpp M Source/WebCore/html/HTMLScriptElement.h M Source/WebCore/html/HTMLScriptElement.idl M Source/WebKitLegacy/mac/DOM/DOMHTMLScriptElement.mm Log Message: ----------- Implement trusted types integration with script elements IDL https://bugs.webkit.org/show_bug.cgi?id=269718 Reviewed by Ryosuke Niwa and Darin Adler. Implement shadow properties for textContent and innerText on HTMLScriptElement. Implement enforcement on src and text as well as the shadowed properties. This doesn't implement any changes to the prepareScript function that will be addressed in a follow up. Spec: https://w3c.github.io/trusted-types/dist/spec/#enforcement-in-scripts * LayoutTests/TestExpectations: * LayoutTests/imported/w3c/web-platform-tests/trusted-types/HTMLElement-generic-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/trusted-types/block-string-assignment-to-HTMLElement-generic-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/trusted-types/default-policy-callback-arguments-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/trusted-types/default-policy-callback-arguments.html: * LayoutTests/imported/w3c/web-platform-tests/trusted-types/no-require-trusted-types-for-report-only-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/trusted-types/require-trusted-types-for-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/trusted-types/require-trusted-types-for-report-only-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/trusted-types/trusted-types-createHTMLDocument-expected.txt: * LayoutTests/platform/gtk/imported/w3c/web-platform-tests/trusted-types/HTMLElement-generic-expected.txt: * LayoutTests/platform/mac-wk1/imported/w3c/web-platform-tests/trusted-types/HTMLElement-generic-expected.txt: * LayoutTests/platform/wpe/imported/w3c/web-platform-tests/trusted-types/HTMLElement-generic-expected.txt: * Source/WebCore/dom/TrustedType.cpp: (WebCore::trustedTypeCompliantString): * Source/WebCore/dom/TrustedType.h: * Source/WebCore/html/HTMLScriptElement.cpp: (WebCore::HTMLScriptElement::setText): (WebCore::HTMLScriptElement::setTextContent): (WebCore::HTMLScriptElement::setInnerText): (WebCore::HTMLScriptElement::src const): (WebCore::HTMLScriptElement::setSrc): (WebCore::HTMLScriptElement::addSubresourceAttributeURLs const): * Source/WebCore/html/HTMLScriptElement.h: * Source/WebCore/html/HTMLScriptElement.idl: * Source/WebKitLegacy/mac/DOM/DOMHTMLScriptElement.mm: (-[DOMHTMLScriptElement setText:]): Canonical link: https://commits.webkit.org/278343@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