Skip to content

Conversation

@chromium-wpt-export-bot
Copy link
Collaborator

@chromium-wpt-export-bot chromium-wpt-export-bot commented Jan 8, 2026

The trusted-types CSP policy knows two keywords, 'allow-duplicates' and
'none'. Both are presently parsed case-sensitive. But CSP 3 normatively
references RFC 5234, which states that CSP keywords should be read case-
insensitively. (I.e., 'ALLOW-DUPLICATES' would also work.) This matches
WebKit's behaviour, and also Chrome's behaviour for other CSP keywords.

Bug: 472892238
Change-Id: I3877b16e672787611498950edb5c7fc2ea3d63c1
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7378832
Reviewed-by: Mike West <[email protected]>
Commit-Queue: Daniel Vogelheim <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1566827}

The trusted-types CSP policy knows two keywords, 'allow-duplicates' and
'none'. Both are presently parsed case-sensitive. But CSP 3 normatively
references RFC 5234, which states that CSP keywords should be read case-
insensitively. (I.e., 'ALLOW-DUPLICATES' would also work.) This matches
WebKit's behaviour, and also Chrome's behaviour for other CSP keywords.

Bug: 472892238
Change-Id: I3877b16e672787611498950edb5c7fc2ea3d63c1
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7378832
Reviewed-by: Mike West <[email protected]>
Commit-Queue: Daniel Vogelheim <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1566827}
Copy link
Collaborator

@wpt-pr-bot wpt-pr-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The review process for this patch is being conducted in the Chromium project.

@chromium-wpt-export-bot chromium-wpt-export-bot merged commit ac5e0d3 into master Jan 9, 2026
24 checks passed
@chromium-wpt-export-bot chromium-wpt-export-bot deleted the chromium-export-cl-7378832 branch January 9, 2026 14:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants