Gate window.trustedTypes behind flag (#36511)

This was missed in #36355 and should have also been gated by the flag.
With these, the wpt.fyi tests should now no longer pass, as the flag
hasn't been removed yet.

Signed-off-by: Tim van der Lippe <tvanderlippe@gmail.com>
This commit is contained in:
Tim van der Lippe 2025-04-14 16:19:59 +02:00 committed by GitHub
parent 2bab5d8d52
commit 440739090f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -47,6 +47,7 @@ partial interface mixin WindowOrWorkerGlobalScope {
// https://www.w3.org/TR/trusted-types/#extensions-to-the-windoworworkerglobalscope-interface
partial interface mixin WindowOrWorkerGlobalScope {
[Pref="dom_trusted_types_enabled"]
readonly attribute TrustedTypePolicyFactory trustedTypes;
};