megaplot icon indicating copy to clipboard operation
megaplot copied to clipboard

Not compliant with Trusted Types due to regl

Open GradySimon opened this issue 2 years ago • 0 comments

It looks like regl triggers Trusted Types errors at this line. Since I'm in a "Report Only" environment, I see this error in the console, but it does allow the code to still run.

[Report Only] This document requires 'TrustedScript' assignment.

I don't fully understand what it's doing, but it seems like it's generating JavaScript code and then compiling with the Function constructor.

Is there anything that can be done at the Megaplot level to make become compliant with Trusted Types?

I realize this is more of a regl issue, so I filed https://github.com/regl-project/regl/issues/650, but I would also be interested if you have thoughts on this.

GradySimon avatar Jun 16 '22 15:06 GradySimon