diff options
author | Tim van der Lippe <TimvdLippe@users.noreply.github.com> | 2025-04-14 16:19:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-14 14:19:59 +0000 |
commit | 440739090f85a6d5ba2e26978ad9c77771e7f4af (patch) | |
tree | 364c12b7054794708dd5bc05544be2cb2a4f5f6e /components/script_bindings | |
parent | 2bab5d8d521b6e51e3d8be46a3723e355609361c (diff) | |
download | servo-440739090f85a6d5ba2e26978ad9c77771e7f4af.tar.gz servo-440739090f85a6d5ba2e26978ad9c77771e7f4af.zip |
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>
Diffstat (limited to 'components/script_bindings')
-rw-r--r-- | components/script_bindings/webidls/WindowOrWorkerGlobalScope.webidl | 1 |
1 files changed, 1 insertions, 0 deletions
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; }; |