diff options
Diffstat (limited to 'components/script_bindings/codegen/Bindings.conf')
-rw-r--r-- | components/script_bindings/codegen/Bindings.conf | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/components/script_bindings/codegen/Bindings.conf b/components/script_bindings/codegen/Bindings.conf index a3adf0f39ab..2c94c445778 100644 --- a/components/script_bindings/codegen/Bindings.conf +++ b/components/script_bindings/codegen/Bindings.conf @@ -575,6 +575,14 @@ DOMInterfaces = { 'canGc': ['ParentNode', 'PreviousNode', 'NextNode', 'FirstChild', 'LastChild', 'PreviousSibling', 'NextSibling'] }, +'TrustedTypePolicy': { + 'canGc': ['CreateHTML', 'CreateScript', 'CreateScriptURL'] +}, + +'TrustedTypePolicyFactory': { + 'canGc': ['CreatePolicy', 'EmptyHTML', 'EmptyScript'] +}, + 'URL': { 'weakReferenceable': True, 'canGc': ['Parse', 'SearchParams'], @@ -590,7 +598,7 @@ DOMInterfaces = { }, 'Window': { - 'canGc': ['Stop', 'Fetch', 'Scroll', 'Scroll_','ScrollBy', 'ScrollBy_', 'Stop', 'Fetch', 'Open', 'CreateImageBitmap'], + 'canGc': ['Stop', 'Fetch', 'Scroll', 'Scroll_','ScrollBy', 'ScrollBy_', 'Stop', 'Fetch', 'Open', 'CreateImageBitmap', 'TrustedTypes'], 'inRealms': ['Fetch', 'GetOpener'], 'additionalTraits': ['crate::interfaces::WindowHelpers'], }, @@ -602,7 +610,7 @@ DOMInterfaces = { 'WorkerGlobalScope': { 'inRealms': ['Fetch'], - 'canGc': ['Fetch', 'CreateImageBitmap', 'ImportScripts'], + 'canGc': ['Fetch', 'CreateImageBitmap', 'ImportScripts', 'TrustedTypes'], }, 'Worklet': { |