servo/components/shared/base
Andrei Volykhin 4054f9a5a0
canvas: Make OffscreenCanvas transferable (without placeholder) (#37872)
Follow the specification and make OffscreenCanvas objects are
transferable,
but not in case if there are a weak reference to placeholder canvas
element.
To handle it properly need to implement dedicated frame
provider/dispatcher
between canvas element (script thread) and offscreen canvas (dedicated
worker thread).

https://html.spec.whatwg.org/multipage/#the-offscreencanvas-interface:transferable-objects

Testing: Improvements in the following tests
-
html/canvas/element/drawing-images-to-the-canvas/2d.drawImage.detachedcanvas.html
-
html/canvas/offscreen/manual/convert-to-blob/offscreencanvas.convert.to.blob*
-
html/canvas/offscreen/manual/the-offscreen-canvas/offscreencanvas.transfer*
-
html/infrastructure/safe-passing-of-structured-data/transfer-errors.window.js

Part of #24276

Signed-off-by: Andrei Volykhin <andrei.volykhin@gmail.com>
2025-07-08 14:47:29 +00:00
..
Cargo.toml Organize component Cargo.toml dependencies (#36224) 2025-03-30 19:03:54 +00:00
cross_process_instant.rs deps: Upgrade to webrender@0.66 (#35325) 2025-02-07 11:57:26 +00:00
generate-unicode-block.py base: Remove ucd dependency (#32424) 2024-06-03 17:10:01 +00:00
generic_channel.rs Move webgl_channel into base crate (#32339) 2024-05-24 06:13:20 +00:00
id.rs canvas: Make OffscreenCanvas transferable (without placeholder) (#37872) 2025-07-08 14:47:29 +00:00
lib.rs script: Create a CrossProcessInstant to enable serializable monotonic time (#33282) 2024-09-05 18:50:09 +00:00
print_tree.rs
text.rs clippy: Fix collapsible_match warning in components/shared (#33664) 2024-10-07 07:52:38 +00:00
unicode_block.rs base: Remove ucd dependency (#32424) 2024-06-03 17:10:01 +00:00