Bug 289904

Summary: require-trusted-types-for CSP parsing allows invalid sink groups
Product: WebKit Reporter: Luke Warlow <lwarlow>
Component: New BugsAssignee: 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://bugs.webkit.org/show_bug.cgi?id=267579

Luke Warlow
Reported 2025-03-17 10:16:28 PDT
Currently, 'script''script' parses as if it was 'script'. This should be changed to be treated as invalid. The parsing also early returns if it finds an invalid sink group. This is incorrect behaviour. It should report this invalid sink group but keep parsing in case it finds a valid one.
Attachments
Radar WebKit Bug Importer
Comment 1 2025-03-24 10:17:28 PDT
Luke Warlow
Comment 2 2025-03-27 11:02:21 PDT
EWS
Comment 3 2025-09-30 12:06:00 PDT
Committed 300770@main (18919c9e6b22): <https://commits.webkit.org/300770@main> Reviewed commits have been landed. Closing PR #43118 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.