Skip to content

Trusted Types API not supported on Firefox / CSP error / "No youtube video found" error #2285

Open
@Sv443

Description

@Sv443

Since Firefox 135, the Trusted Types API is an experimental feature that can be enabled with the about:config pref dom.security.trusted_types.enabled
Switching it to true makes the extension not work anymore, because it's doing innerHTML assignment without sanitizing the HTML with a Trusted Types Policy.
Chromium has this feature on by default, so I see no reason why it wouldn't also work on Firefox. Maybe it's switched off via browser detection instead of the recommended way via feature detection?
For now I guess this doesn't have the highest priority, but the existence of the experimental pref means Mozilla is working on implementing it soon.

Here are all the errors that are thrown:

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions