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 test to <block-string-assignment-to-Element-setAttribute.html> which checks trusted types can be assigned to non-injection sinks #449

Open
mbrodesser-Igalia opened this issue Feb 21, 2024 · 2 comments

Comments

@mbrodesser-Igalia
Copy link
Collaborator

Mentioned at https://searchfox.org/mozilla-central/rev/c26f7461fc2a51196b7f517c7f98a1e271dc9ec0/testing/web-platform/tests/trusted-types/block-string-assignment-to-Element-setAttribute.html#92.

If so:

  • why? It seems unnecessary.
  • tests for that are needed.
@mbrodesser-Igalia
Copy link
Collaborator Author

E.g. https://jsfiddle.net/6hj2xra7/

@mbrodesser-Igalia
Copy link
Collaborator Author

https://w3c.github.io/trusted-types/dist/spec/#trusted-types mentions it's intended, so the test needs to be adapted.

@mbrodesser-Igalia mbrodesser-Igalia changed the title Is it intended that non-injection sinks may be assigned with trusted types? Add test to <block-string-assignment-to-Element-setAttribute.html> which checks trusted types can be assigned to non-injection sinks Feb 21, 2024
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

No branches or pull requests

1 participant