Commit Graph
141 Commits
Author SHA1 Message Date
ldm0 f282d42541 fix(canvas): transfer OffscreenCanvas through structured cloning 2026-11-21 20:03:33 +08:00
ldm0 69b1fd7212 feat(canvas): render native patterns and propagate origin-clean state 2026-11-21 20:03:33 +08:00
ldm0 2319a69dda feat(canvas): preserve native HDR pixel storage
Retain float16/unorm8, sRGB/Display-P3 and alpha representation through
Canvas, OffscreenCanvas, ImageData and ImageBitmap operations. Composite
in premultiplied coordinates, convert at native format boundaries and
preserve untouched pixel bytes across partial writes and bitmap copies.

Keep parsed drawing colors independent from CSS serialization and use
the shared native receiver bindings for color attributes. Correct the
old trailing-zero serialization expectation against Chromium output.

Validation: fmt, full workspace clippy and nextest (22234 passed,
16 skipped; 32 jobs/threads, zero retries). Original WPT: 914/1116 (+12), all 902 prior passes retained. Sources,
harnesses and assertions are unchanged; browser evidence is retained.
2026-11-21 20:03:33 +08:00
ldm0 c8fd8faaaa fix(canvas): honor ImageData color spaces and pixel formats 2026-11-21 20:03:33 +08:00
ldm0 2447c44785 fix(canvas): preserve native ImageData construction and clone graphs 2026-11-21 20:03:33 +08:00
ldm0 dffa24384a fix(canvas): preserve pixel rectangles and native receivers 2026-11-21 20:03:33 +08:00
ldm0 b8a6dd9c37 fix(canvas): preserve native shadow and text style state 2026-11-21 20:03:33 +08:00
ldm0 ecdb578d20 feat(webrtc): bind native RTP script transform workers and streams
Queue transform creation and association on the owning Dedicated Worker, including module bootstrap and cross-realm Worker arguments. Reuse native WebIDL brands, clone/transfer validation, ordered event handlers and real Streams; preserve permanent endpoint ownership and locked-stream disassociation.

Expose the current draft Worker transformer and keyframe event interfaces. Keyframe requests reject when no encoder/depacketizer exists; actual media capture, encoded frames, RTP and SFrame packetization remain pending.

Validation: repository fmt, workspace all-target/all-feature clippy, and full nextest at 32 workers with zero retries; complete original RTP WPT files and prior runtime regressions retained.
2026-11-21 20:03:32 +08:00
ldm0 5f41d4e4d0 feat(webtransport): bind native sessions and datagram frontend
Use native WebIDL declarations, stable promises, real Streams and owned
networking tasks for constructor validation, datagram buffering, send groups
and session failure. Preserve receiver brands, native Proxy identity, callee
error realms and Window/worker ownership without fabricating a connection.

Normalize registered native WritableStream proxies and keep browser
networking algorithms within their selected task completion boundary.

Validation: cargo fmt --all; cargo clippy --workspace --all-targets
--all-features -- -D warnings; cargo nextest run --no-fail-fast
--test-threads 32 --retries 0.
2026-11-21 20:03:32 +08:00
ldm0 c7a94656b2 feat(eme): bind native interfaces and unavailable key-system requests 2026-11-21 20:03:32 +08:00
ldm0 7545e19ecc fix(media): apply track constraints through native task commits 2026-11-21 20:03:32 +08:00
ldm0 a6b6dfc39f fix(webrtc): associate local RTP ICE and DTLS transports 2026-11-21 20:03:32 +08:00
ldm0 c9767c7f66 fix(webrtc): complete local data channel closing and connection shutdown 2026-11-21 20:03:32 +08:00
ldm0 cb174c8024 fix(webrtc): validate data channel initialization and attributes 2026-11-21 20:03:32 +08:00
ldm0 9393cddc82 fix(webrtc): synchronize signaling descriptions and state events 2026-11-21 20:03:32 +08:00
ldm0 7496126ab8 fix(webrtc): validate local SDP and preserve offer provenance 2026-11-21 20:03:32 +08:00
ldm0 9f00a211b1 feat(webrtc): add native RTP sender operations 2026-11-21 20:03:32 +08:00
ldm0 f78ff49db6 feat(webrtc): add native RTP transceiver frontend 2026-11-21 20:03:32 +08:00
ldm0 9bbaf3dbe6 feat(webrtc): generate native certificates and preserve clone handles 2026-11-21 20:03:32 +08:00
ldm0 fa6cc139ea feat(eme): add native key status map members 2026-11-21 20:03:32 +08:00
ldm0 7060b5cecc feat(css): expose native animation metadata and event associations 2026-11-21 20:03:32 +08:00
ldm0 1ddfaefb72 fix(canvas): save and restore native 2D drawing state 2026-11-21 20:03:32 +08:00
ldm0 f848735cff fix(build): reconcile native SVG bindings after main rebase
Remove duplicated SVG declarations and stale shims introduced while replaying
the topic history onto the native SVG interfaces commit in main. Preserve
the later derive, UTF-16 and SMIL implementations and all active tests.

Enable main's lone-surrogate SVG animated-string regression now that the
native attribute storage supports UTF-16.

Validation: cargo fmt --all; cargo clippy --workspace --all-targets
--all-features -- -D warnings; cargo nextest run --no-fail-fast
(21730 passed, 16 skipped; 32 threads; no automatic retries).
2026-11-21 20:03:31 +08:00
ldm0 c3fe259b96 fix(canvas): support native bitmaprenderer transfers
Expose ImageBitmapRenderingContext through HTML and Offscreen canvas modes.
Transfer the native pixel backing, detach the source, preserve natural
output dimensions, and share canvas readback and PNG/Blob exports.

Use generated WebIDL receiver and argument checks, including registered
native Proxies. Protect context caches with private slots and apply alpha
settings through the shared dictionary derive.

Validate actual bitmap tasks, cross-realm pixel and export behavior, and
worker surface contracts. Full fmt, workspace clippy and nextest pass.
2026-11-21 20:03:31 +08:00
ldm0 6cd642d65a fix(webrtc): initialize tone and track event payloads
Use shared WebIDL dictionary and native receiver bindings for synthetic RTC events.
Retain platform object identities, freeze the stream snapshot in the event realm,
and defer newTarget prototype selection until argument conversion completes.
2026-11-21 20:03:31 +08:00
ldm0 2d76938f9d feat(webmidi): add native frontend bindings and readonly maps
Expose secure MIDI requests, native receiver validation, port interface members,
and live readonly maplike operations. Reuse shared WebIDL dictionary, sequence,
callback and octet conversions. Device requests and port I/O reject explicitly
until a platform MIDI backend is available.
2026-11-21 20:03:31 +08:00
ldm0 bf72c55e8a feat(media): add native stream track sets and lifecycle 2026-11-21 20:03:31 +08:00
ldm0 75727f553f feat(webcodecs): add video codec frontend lifecycle and support shims
Expose VideoDecoder and VideoEncoder members through native brands and shared WebIDL conversion. Schedule unsupported configuration errors as owner tasks, preserve callback and Promise realms, snapshot supported dictionary fields, and cancel pending flushes and stale control work on reset or close.
2026-11-21 20:03:31 +08:00
ldm0 1e44438296 feat(media): add MediaSession frontend state and capture shims 2026-11-21 20:03:31 +08:00
ldm0 0f0bcef57c fix(dom): preserve HTML serialization and custom-element UTF-16 2026-11-21 20:03:31 +08:00
ldm0 7d9dac44f6 fix(svg): implement root magnification and translation 2026-11-21 20:03:31 +08:00
ldm0 ec03fdae01 fix(svg): dispatch native SMIL timing events 2026-11-21 20:03:31 +08:00
ldm0 ec0b63df24 feat(canvas): implement native Path2D geometry and drawing 2026-11-21 20:03:31 +08:00
ldm0 0a9df5297b fix(svg): reflect filter enumerations with native receiver validation
Expose GaussianBlur edgeMode with its none default and shared edge-mode keywords/constants. Preserve arithmetic as composite operator 6 and keep the existing lighter extension at 7. Use derived SVGAnimatedEnumeration receiver and argument validation, canonicalize registered native proxies, and reflect mutations back to native owner attributes. Cover live/windowless documents, invalid keywords, cross-realm bindings, conversion order, and registered/author proxies.
2026-11-21 20:03:31 +08:00
ldm0 08f54b843b fix(cache): derive query arguments and preserve DOMString names 2026-11-21 20:03:30 +08:00
ldm0 9aee5c5b91 feat(webapi): implement media and transport error values 2026-11-21 20:03:30 +08:00
ldm0 e6882a87d7 fix(eme): implement native encrypted media event payloads 2026-11-21 20:03:30 +08:00
ldm0 27487e4f79 fix(svg): preserve value list items with native receivers
Install Length, Number and Point list operations on their interface prototypes and use generated WebIDL receiver checks. Share per-index synchronization and readonly attachment/detachment across all SVG value lists, copying attached items into the destination realm. Normalize native Proxy arguments and retained value receivers, synchronize SVGLength and DOMPoint reads and writes, and use WebIDL float conversions for lengths. Cover live/windowless HTML/XML documents in both realms with frozen behavior probes and registered native Proxy regressions.
2026-11-21 20:03:30 +08:00
ldm0 67ee8584d3 fix(svg): synchronize transform lists with native identity
Route transform lists through the shared SVG list implementation, including indexed properties, attached-item copies, live per-index synchronization and readonly animVal. Preserve transform and matrix identity, propagate matrix writes, normalize registered native Proxies and use generated receiver checks before conversion. Separate DOMMatrix2DInit conversion from alias fix-up so setMatrix checks readonly state between them. Use WebIDL float parameters and expose SVGClipPathElement.transform. Frozen main/child and live/windowless HTML/XML probes and native-proxy regressions cover these semantics. This change uses the preceding transform serialization fix.
2026-11-21 20:03:30 +08:00
ldm0 d8e39ef062 fix(svg): validate URI receivers and preserve DOMString reflections
Bind URI getters to their concrete native interfaces, put href on Gradient and Filter declaring prototypes, and share cached tear-offs in the native producer realm. Gradient subclasses inherit the base getter.

Keep Trusted Types attribute input and plain DOMString in UTF-16, including SVGScript href. Reuse existing CSP, policy, namespace and mutation handling; ScriptURL policy return conversion remains USVString.

Cover cross-realm and registered native Proxies, windowless href/xlink reflection, UTF-16, conversion errors and enforced/report-only Trusted Types regressions.
2026-11-21 20:03:30 +08:00
ldm0 17f5a5c1ce fix(svg): reflect filter number lists with live native items 2026-11-21 20:03:30 +08:00
ldm0 2461420455 fix(mediasession): implement native metadata snapshots and session association 2026-11-21 20:03:30 +08:00
ldm0 a5c22c414f fix(webidl): defer constructor prototype selection until after conversion 2026-11-21 20:03:30 +08:00
ldm0 d535a81a98 fix(events): retain and retarget interaction event sources 2026-11-21 20:03:29 +08:00
ldm0 3958d3feaf fix(webidl): reconcile Media and CSP registries after rebase 2026-11-21 20:03:29 +08:00
ldm0 4c13d6d778 fix(webidl): reconcile interface registries after main rebase 2026-11-21 20:03:29 +08:00
ldm0 a108e356da fix(events): unify native auxiliary pointer event construction 2026-11-21 20:03:29 +08:00
ldm0 8fa2fe7f84 fix(events): construct native click with pointer event defaults 2026-11-21 20:03:29 +08:00
ldm0 3e1bbd91c3 fix(webidl): preserve UIEvent and CompositionEvent initialization 2026-11-21 20:03:29 +08:00
ldm0 fb15cb7c9c fix(dom): preserve event listener type identity 2026-11-21 20:03:29 +08:00