Commit Graph
156 Commits
Author SHA1 Message Date
ldm0 c57dc1a6f9 fix(events): derive CustomEvent initialization and prototype detail
Expose detail through the native CustomEvent prototype declaration and
validate receivers with the shared interface brand. Keep arbitrary payload
values in the private event backing without projecting or copying them.

Convert inherited EventInit and raw CustomEventInit members through the
shared dictionary derive before initializing state. Preserve exceptions,
getter order, empty dictionary defaults and legacy initialization semantics.

Cover cross-realm descriptors, abrupt conversions, author and registered
native Proxies, windowless Documents and author-modified prototypes.
2026-11-20 22:47:55 +08:00
ldm0 5f34319d4b refactor(cache): use derived request argument conversion 2026-11-20 22:47:55 +08:00
ldm0 1c17d30113 fix(navigation): preserve activation source Document provenance
Carry source lifecycle through shared history seeds, native requests, and
private activation state. Project from using the committed Document origin
so initial, inherited, cross-origin, and opaque sources stay distinct.

Record child Document origins at commit and retain the traversal visibility
boundary. Cover 19 real HTTP scenarios and the current upstream initial
about:blank WPT on both HTTP and HTTPS.
2026-11-20 22:47:55 +08:00
ldm0 2799af7af3 fix(navigation): retain activation across native history snapshots
Capture the associated private state when synchronizing child history, so
readonly attributes and author shadows cannot erase or replace activation.
Restore its entry by identity even after same-document history changes.

Cover normal, shadowed and frozen objects and recreate their structured
state after source-isolate teardown using real HTTP child Documents.
2026-11-20 22:47:55 +08:00
ldm0 305739b9c8 fix(navigation): expose readonly activation and transition state 2026-11-20 22:47:55 +08:00
ldm0 19a546ecb2 fix(navigator): preserve native plugin collection semantics 2026-11-20 22:47:55 +08:00
ldm0 d6ce3925f5 fix(navigator): expose UAData attributes with native snapshots 2026-11-20 22:47:55 +08:00
ldm0 e773f6f8d0 fix(media): derive capability configuration snapshots 2026-11-20 22:47:55 +08:00
ldm0 d14b3a5dc0 refactor(webrtc): derive session description snapshots
Use one typed RTCSessionDescriptionInit schema for constructor conversion, native factories, private backing and fresh JSON results. Reuse the RTCSdpType enum and retain UTF-16 SDP, lexical input conversion and the existing type/sdp output order.

Resolve registered native Proxy receivers through shared identity before reading the private snapshot. Keep returned dictionaries independent and emit fixed local-description payloads through the data_properties declaration.
2026-11-20 22:47:54 +08:00
ldm0 f267b43fec fix(runtime): integrate typed API state and Window ownership with main
Reconcile API dictionary snapshots and data properties with main, and migrate frontend listener state to the shared native EventTarget machinery. Preserve native proxy dispatch identity and validate callbacks in their captured execution context.

Use the shared cross-origin Window and Location infrastructure while retaining callee-realm errors, entry and incumbent navigation settings, lazy child contexts and document-order named access. Update regression fixtures for native task ownership and published geometry; retain all matrix assertions and compare video frame pixels directly without stringifying them.
2026-11-20 22:47:54 +08:00
ldm0 652e1f4e85 fix(performance): expose native resource timing response metadata
Add the remaining response metadata and router getters with native JSON snapshots. Preserve request, interim and final header observations through Window and Worker fetch lifecycles, and filter iframe encoding metadata before discarding redirect provenance.

Validation: cargo fmt --all; strict workspace/all-target/all-feature Clippy; 22470 nextest PASS with 16 existing skips; 2114 retained original WPT PASS; 24/24 interim-response tests and 28/28 native metadata contract checks. Original WPT gained 106 PASS without losing existing PASS.
2026-11-20 22:47:53 +08:00
ldm0 90f0a9063e fix(encoding): expose branded text stream prototype attributes 2026-11-20 22:47:53 +08:00
ldm0 ed64edc8f4 fix(encoding): preserve decoder and BOM state after stream errors
Preserve codec state across streaming errors, serialize BOM state only for successful output, and reset both at non-stream boundaries. Cover ISO-2022-JP recovery and Unicode BOM handling in native, Window, and Worker tests.
2026-11-20 22:47:53 +08:00
ldm0 f3963c7048 fix(encoding): preserve legacy decoder state across empty chunks 2026-11-20 22:47:53 +08:00
ldm0 a73f443917 fix(webvtt): bind cue and region attributes to native state
Add VTTRegion and the missing VTTCue alignment and region accessors with
native WebIDL receiver checks. Preserve UTF-16 and unbounded end times.

Build parsed cues from native prototypes and private slots, and create
HTML fragments in the cue realm's associated Document. Correct the two
obsolete native assertions that rejected positive Infinity end times.
2026-11-20 22:47:53 +08:00
ldm0 4cafbcfe8b fix(canvas): transfer OffscreenCanvas through structured cloning 2026-11-20 22:47:52 +08:00
ldm0 25ccd19098 feat(canvas): render native patterns and propagate origin-clean state 2026-11-20 22:47:52 +08:00
ldm0 f0de77d02b 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-20 22:47:52 +08:00
ldm0 aed969b572 fix(canvas): honor ImageData color spaces and pixel formats 2026-11-20 22:47:52 +08:00
ldm0 2823bdc5d7 fix(canvas): preserve native ImageData construction and clone graphs 2026-11-20 22:47:52 +08:00
ldm0 fe7d4fa6eb fix(canvas): preserve pixel rectangles and native receivers 2026-11-20 22:47:52 +08:00
ldm0 322b3d3fb5 fix(canvas): preserve native shadow and text style state 2026-11-20 22:47:52 +08:00
ldm0 0cd77d5aac 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-20 22:47:51 +08:00
ldm0 cca9d32917 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-20 22:47:51 +08:00
ldm0 65fdaa3eab feat(eme): bind native interfaces and unavailable key-system requests 2026-11-20 22:47:51 +08:00
ldm0 d8d95e6c20 fix(media): apply track constraints through native task commits 2026-11-20 22:47:51 +08:00
ldm0 9d056c4d7d fix(webrtc): associate local RTP ICE and DTLS transports 2026-11-20 22:47:51 +08:00
ldm0 8993edc2db fix(webrtc): complete local data channel closing and connection shutdown 2026-11-20 22:47:51 +08:00
ldm0 79fb7854c1 fix(webrtc): validate data channel initialization and attributes 2026-11-20 22:47:51 +08:00
ldm0 e85c22dca3 fix(webrtc): synchronize signaling descriptions and state events 2026-11-20 22:47:51 +08:00
ldm0 82a80ad3ae fix(webrtc): validate local SDP and preserve offer provenance 2026-11-20 22:47:51 +08:00
ldm0 299db911f2 feat(webrtc): add native RTP sender operations 2026-11-20 22:47:51 +08:00
ldm0 2f227c4d1f feat(webrtc): add native RTP transceiver frontend 2026-11-20 22:47:51 +08:00
ldm0 f4628a2b05 feat(webrtc): generate native certificates and preserve clone handles 2026-11-20 22:47:51 +08:00
ldm0 d2e5ea448c feat(eme): add native key status map members 2026-11-20 22:47:51 +08:00
ldm0 ce97c72ef3 feat(css): expose native animation metadata and event associations 2026-11-20 22:47:50 +08:00
ldm0 f12d9946fe fix(canvas): save and restore native 2D drawing state 2026-11-20 22:47:50 +08:00
ldm0 4080ceccfe 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-20 22:47:50 +08:00
ldm0 5001027b3d 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-20 22:47:50 +08:00
ldm0 5e4546d076 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-20 22:47:50 +08:00
ldm0 280d3fc290 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-20 22:47:50 +08:00
ldm0 88329b9111 feat(media): add native stream track sets and lifecycle 2026-11-20 22:47:50 +08:00
ldm0 3b2f56c635 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-20 22:47:50 +08:00
ldm0 a185da0745 feat(media): add MediaSession frontend state and capture shims 2026-11-20 22:47:50 +08:00
ldm0 3b62a1b2e6 fix(dom): preserve HTML serialization and custom-element UTF-16 2026-11-20 22:47:50 +08:00
ldm0 c6e57e58f2 fix(svg): implement root magnification and translation 2026-11-20 22:47:49 +08:00
ldm0 f763db1896 fix(svg): dispatch native SMIL timing events 2026-11-20 22:47:49 +08:00
ldm0 189e4fdcdb feat(canvas): implement native Path2D geometry and drawing 2026-11-20 22:47:49 +08:00
ldm0 16803e1d3f 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-20 22:47:49 +08:00
ldm0 1064f8fd2b fix(cache): derive query arguments and preserve DOMString names 2026-11-20 22:47:49 +08:00