servo/third_party/WebIDL/transferable.patch
Andrei Volykhin 1facb799f2 imagebitmap: Make ImageBitmap serializable and transferable
According to specification ImageBitmap objects are
serializable objects and transferable objects.
https://html.spec.whatwg.org/multipage/#the-imagebitmap-interface:imagebitmap-11

Testing:
 - html/canvas/element/manual/imagebitmap/*
 - html/infrastructure/safe-passing-of-structured-data/*
 - html/webappapis/structured-clone/*
 - workers/semantics/structured-clone/*

Signed-off-by: Andrei Volykhin <andrei.volykhin@gmail.com>
2025-05-23 22:09:01 +03:00

12 lines
563 B
Diff

diff --git a/third_party/WebIDL/WebIDL.py b/third_party/WebIDL/WebIDL.py
index 40e118e3781..bad5cbe54ca 100644
--- a/third_party/WebIDL/WebIDL.py
+++ b/third_party/WebIDL/WebIDL.py
@@ -2106,6 +2106,7 @@ class IDLInterface(IDLInterfaceOrNamespace):
or identifier == "Serializable"
or identifier == "Abstract"
or identifier == "Inline"
+ or identifier == "Transferable"
):
# Known extended attributes that do not take values
if not attr.noArguments():