Trusted Types API not supported on Firefox / CSP error / "No youtube video found" error
Author: Sv443Created Jun 7, 2025Updated Jul 26, 2026
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:
Source: ajayyy/SponsorBlock