Skip to content

Check compliance with Trusted Types #5569

Description

@sosnovsky

Google announced that they extend Trusted Types to Gmail in mid-February - https://workspaceupdates.googleblog.com/2024/01/extending-trusted-types-to-gmail.html:

This new enforcement mode will require third-party extensions to use typed objects instead of strings when assigning values to DOM APIs. Once Trusted Types are fully enforced, the Trusted Types directive will be present in the Content Security Policy (CSP) header:
Content-Security-Policy: require-trusted-types-for 'script';report-uri https://mail.google.com/mail/cspreport

We already use DOMPurify library for DOM manipulations, but need to re-check if extension is fully complaint with Trusted Types.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions