trusted-types icon indicating copy to clipboard operation
trusted-types copied to clipboard

"Create a Trusted Type Policy" should specify the TypeError messages

Open mbrodesser-Igalia opened this issue 1 year ago • 3 comments
trafficstars

https://searchfox.org/mozilla-central/rev/0916ef0172ce5b2a72749b659da8ad95f637ef42/testing/web-platform/tests/trusted-types/TrustedTypePolicyFactory-createPolicy-nameTests.html#38 requires that.

https://w3c.github.io/trusted-types/dist/spec/#abstract-opdef-create-a-trusted-type-policy currently not.

mbrodesser-Igalia avatar Apr 30 '24 12:04 mbrodesser-Igalia

Hmm, I don't think we should be checking the contents of message unless that is somehow required for web compatibility.

annevk avatar Apr 30 '24 14:04 annevk

Agreed, it's an implementation detail.

ghost avatar Apr 30 '24 14:04 ghost

@otherdaniel can you comment on whether these messages are important for compatability?

I agree that generally these should be left to the browser to decide. Or these should be specced across the board (way out of scope of this work).

lukewarlow avatar May 02 '24 13:05 lukewarlow