You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FYI Johannes Rieken (@jrieken) : running yarn tsec-compile-check shows much more errors than the ones captured above. This can be easily reproduced using yarn upgrade tsec --latest which I did on my machine and got a newer node module.
Since the tsec tool is still over eager with errors and incompatible with latest TS syntax: ttpatch.diff.txt The patch installs a default trusted types policy and warns whenever that's being used. For this to work need to run the "right code" - which is sometimes tricky.
sorry for the silly question, this is my first trusted types ping -- what should I do if the usage is intended? In the renderer webview, we intentionally want to insert unsanitized HTML that's rendered for the webview.
Activity
avoid innerHTML in diff editor, fyi @alexdima, #108400
alexdima commentedon Nov 25, 2020
FYI Johannes Rieken (@jrieken) : running
yarn tsec-compile-checkshows much more errors than the ones captured above. This can be easily reproduced usingyarn upgrade tsec --latestwhich I did on my machine and got a newer node module.Add trusted types policies where `.innerHTML` needs to be used (#108400)
Avoid using `innerHTML` (#108400)
jrieken commentedon Nov 25, 2020
Alexandru Dima (@alexdima) for workers a trusted script url should be enough to fix things
jrieken commentedon Dec 9, 2020
Since the tsec tool is still over eager with errors and incompatible with latest TS syntax:
ttpatch.diff.txt The patch installs a default trusted types policy and warns whenever that's being used. For this to work need to run the "right code" - which is sometimes tricky.
connor4312 commentedon Dec 9, 2020
sorry for the silly question, this is my first trusted types ping -- what should I do if the usage is intended? In the renderer webview, we intentionally want to insert unsanitized HTML that's rendered for the webview.
Use `trustedTypes` where using `new Worker()` (#108400)
alexdima commentedon Dec 9, 2020
Connor Peet (@connor4312) Here are 3 examples of what I had to do when I really had to use
.innerHTML:84cf12f#diff-b41fb33a1ffaa149285201e892f84c51e34e9eda746019cf41e7209972ff3d51
connor4312 commentedon Dec 9, 2020
got it, thanks!
notebook: adopt trusted types for renderer
notebook: adopt trusted types for renderer scripts
use tt policy for nested workers, #108400