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

use trusted types policy and sanitizer for static authored help contents #108332

Merged
merged 1 commit into from
Oct 8, 2020

Conversation

jrieken
Copy link
Member

@jrieken jrieken commented Oct 8, 2020

This PR is part of #106395 and makes sure we use a trusted types policy when rendering static help content as html

@jrieken jrieken self-assigned this Oct 8, 2020
@jrieken jrieken requested a review from JacksonKearl October 8, 2020 18:53
@jrieken jrieken added this to the October 2020 milestone Oct 8, 2020
@JacksonKearl
Copy link
Contributor

Seems reasonable... though I do have to wonder what benefit we get using hyper-specific allow lists as opposed to a general "allow things that can't run js" policy. I foresee at least one head-banging session caused by forgetting to update the list 🙃

@JacksonKearl JacksonKearl merged commit f5d3ba4 into master Oct 8, 2020
@JacksonKearl JacksonKearl deleted the joh/ttwalk branch October 8, 2020 23:53
@jrieken
Copy link
Member Author

jrieken commented Oct 9, 2020

allow lists as opposed to a general "allow things that can't run js" policy.

Fully agree but I couldn't figure out to configure insane that way

@jrieken
Copy link
Member Author

jrieken commented Oct 9, 2020

fyi - pushed a few generalisations so that the issue reporter (and static html in general) can use this. This is now dom.safeInnerHtml

@github-actions github-actions bot locked and limited conversation to collaborators Dec 4, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants