From 440739090f85a6d5ba2e26978ad9c77771e7f4af Mon Sep 17 00:00:00 2001 From: Tim van der Lippe Date: Mon, 14 Apr 2025 16:19:59 +0200 Subject: [PATCH] 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 --- .../script_bindings/webidls/WindowOrWorkerGlobalScope.webidl | 1 + 1 file changed, 1 insertion(+) diff --git a/components/script_bindings/webidls/WindowOrWorkerGlobalScope.webidl b/components/script_bindings/webidls/WindowOrWorkerGlobalScope.webidl index 4ca7b1f2de1..deb3d5e2947 100644 --- a/components/script_bindings/webidls/WindowOrWorkerGlobalScope.webidl +++ b/components/script_bindings/webidls/WindowOrWorkerGlobalScope.webidl @@ -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; };