Skip to content

Compliance with Trusted Types #650

@GradySimon

Description

@GradySimon

I'm using regl in an environment that has enabled Trusted Types (fortunately in "Report Only" mode for now). It reports on this line in codegen.js, where a function is constructed from the generated code.

Is it feasible for regl to become compliant with Trusted Types? I don't have any experience with this, but if I'm understanding the documentation correctly, it might relatively simple to create a Trusted Type policy and then construct a TrustedScript from the generated source before calling the Function constructor on it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions