Bug 299958

Summary: Trusted Types incorrectly handles null or undefined policy values
Product: WebKit Reporter: Luke Warlow <lwarlow>
Component: DOMAssignee: Luke Warlow <lwarlow>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Other   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://github.com/web-platform-tests/wpt/pull/55179

Luke Warlow
Reported 2025-10-01 08:33:10 PDT
When a non-default TrustedTypes policy returns null or undefined it's value should be converted to an empty string, instead it stays as a null string which can lead to incorrect behavior.
Attachments
Luke Warlow
Comment 1 2025-10-01 08:38:44 PDT
EWS
Comment 2 2025-10-02 12:23:02 PDT
Committed 300892@main (f1a37fa5d05b): <https://commits.webkit.org/300892@main> Reviewed commits have been landed. Closing PR #51625 and removing active labels.
Radar WebKit Bug Importer
Comment 3 2025-10-02 12:25:30 PDT
Note You need to log in before you can comment on or make changes to this bug.