Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add WPT that createPolicy which violates the trusted-types CSP directive fires a violation event for Windows (not Workers) #530

Closed
mbrodesser-Igalia opened this issue Jun 20, 2024 · 1 comment · Fixed by web-platform-tests/wpt#47176
Assignees
Milestone

Comments

@mbrodesser-Igalia
Copy link
Collaborator

E.g. createPolicy("X"); with trusted-types 'none'".

https://w3c.github.io/trusted-types/dist/spec/#should-block-create-policy doesn't set the violation's element.
Hence https://w3c.github.io/webappsec-csp/#report-violation step 3.2 sets target to the document.
Step 3.3 fires the event.

CC @lukewarlow, @otherdaniel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants