Commit Graph
95 Commits
Author SHA1 Message Date
ldm0 f2a6cbb46b feat(webrtc): add native RTP sender operations 2026-11-19 01:00:11 +08:00
ldm0 7f1ad43609 feat(webrtc): add native RTP transceiver frontend 2026-11-19 01:00:11 +08:00
ldm0 00af068e52 feat(webrtc): generate native certificates and preserve clone handles 2026-11-19 01:00:11 +08:00
ldm0 120d538ebf feat(eme): add native key status map members 2026-11-19 00:59:46 +08:00
ldm0 f3edc0d4ce feat(css): expose native animation metadata and event associations 2026-11-19 00:59:46 +08:00
ldm0 27f198cb7d fix(canvas): save and restore native 2D drawing state 2026-11-19 00:59:46 +08:00
ldm0 18efd0cdcd 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-19 00:58:36 +08:00
ldm0 63f231a9cd 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-19 00:58:09 +08:00
ldm0 03f2ec96ca 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-19 00:58:09 +08:00
ldm0 97d207de5e 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-19 00:58:09 +08:00
ldm0 02a7ded617 feat(media): add native stream track sets and lifecycle 2026-11-19 00:57:40 +08:00
ldm0 1b4de2e71f 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-19 00:57:40 +08:00
ldm0 0909ce81b4 fix(svg): implement root magnification and translation 2026-11-19 00:57:40 +08:00
ldm0 3df3a05e5f fix(svg): dispatch native SMIL timing events 2026-11-19 00:57:40 +08:00
ldm0 e380b101e9 feat(webapi): implement media and transport error values 2026-11-19 00:56:03 +08:00
ldm0 11c0c0c8a4 fix(eme): implement native encrypted media event payloads 2026-11-19 00:56:03 +08:00
ldm0 2f353aff9d 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-19 00:55:37 +08:00
ldm0 c8e9d77009 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-19 00:55:37 +08:00
ldm0 27fc6e59d3 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-19 00:55:37 +08:00
ldm0 9277c445ed fix(mediasession): implement native metadata snapshots and session association 2026-11-19 00:54:30 +08:00
ldm0 a977b72709 fix(webidl): defer constructor prototype selection until after conversion 2026-11-19 00:53:27 +08:00
ldm0 45b199bb61 fix(events): retain and retarget interaction event sources 2026-11-19 00:52:32 +08:00
ldm0 2ea86589c5 fix(webidl): reconcile Media and CSP registries after rebase 2026-11-19 00:52:11 +08:00
ldm0 02560bf6ee fix(webidl): reconcile interface registries after main rebase 2026-11-19 00:52:11 +08:00
ldm0 a19ccc4c3c fix(events): construct native click with pointer event defaults 2026-11-19 00:52:10 +08:00
ldm0 7a06ccf477 fix(webidl): preserve UIEvent and CompositionEvent initialization 2026-11-19 00:51:27 +08:00
ldm0 9c788b02c3 feat(webtransport): expose secure transport interface shells 2026-11-19 00:51:27 +08:00
ldm0 9e1fc1c15a feat(speech): expose synthesis event interface shells 2026-11-19 00:51:27 +08:00
ldm0 210a63d657 feat(webidl): expose reporting interface shells 2026-11-19 00:51:27 +08:00
ldm0 991e59ff24 feat(performance): expose remaining timing interface shells 2026-11-19 00:51:27 +08:00
ldm0 a00784953b feat(media): expose EncodedVideoChunk interface shell 2026-11-19 00:51:27 +08:00
ldm0 bbab75786b feat(webrtc): expose transport and RTP interface shells 2026-11-19 00:51:27 +08:00
ldm0 22e2fee194 feat(webaudio): expose remaining audio interface shells 2026-11-19 00:51:27 +08:00
ldm0 40214fd53d feat(media): expose media stream and video interface shells 2026-11-19 00:51:27 +08:00
ldm0 38b7af655b feat(media): expose encrypted media interface shells 2026-11-19 00:51:27 +08:00
ldm0 02fc1a91d6 feat(webidl): expose MIDI interface shells 2026-11-19 00:51:27 +08:00
ldm0 111f285e2c feat(gamepad): add native interfaces and event payloads 2026-11-19 00:51:27 +08:00
ldm0 b7d6d25574 feat(wake-lock): expose secure native interfaces with explicit platform denial 2026-11-19 00:51:27 +08:00
ldm0 f8885905e7 fix(webaudio): preserve Gain processing guards and popup node interfaces 2026-11-19 00:51:06 +08:00
ldm0 66794a7864 feat(css): reify native URL image values
Expose CSSImageValue in Window and Worker realms using native interface
brands and illegal constructors. Reify Stylo URL images from parse(),
declarations and computed styles, and permit typed cross-property writes
only when the target accepts a native image value.

Cover intrinsic allocation, cross-realm receivers, forged and proxy objects,
conversion bypass, atomic list writes, retained snapshots and Worker exposure.
Gradient/image-set projections keep their existing opaque value path.

Validation: cargo fmt --all; strict workspace/all-targets/all-features clippy;
cargo nextest run --no-fail-fast (20,607 passed, 16 skipped; one existing
child-document decoding test passed on its CI-configured second attempt).
2026-11-19 00:50:29 +08:00
ldm0 572bf73bd0 feat(css): implement native Typed OM transform values
Expose transform lists and components in Window and Worker with native brands,
indexed access, operand validation, serialization, and DOMMatrix conversion.
Reify parsed, declared, and computed transforms from the style engine while
preserving component identities, dimensional flags, and owner realms.

Cover mutation, conversion ordering, matrix snapshots, cross-realm receivers,
style projection, and real worker execution. Validate the shared fixture in
Moli and Chromium over HTTP and HTTPS.

Validation: cargo fmt --all; workspace all-target/all-feature clippy with
-D warnings; cargo nextest run --no-fail-fast (20,573 passed, 16 skipped).
Transform WPT: 279/281; retain two documented math serialization mismatches.
2026-11-19 00:50:28 +08:00
ldm0 da10f1c65b feat(css): parse numeric values and basic math expressions
Add Window-only CSSNumericValue.parse with native Typed OM objects, f64
token recovery, type checking, and bounded calc/min/max/clamp algebra.
Preserve WebIDL conversion and callee realms, and support the x resolution
unit alias. Cover grammar, simplification, precision, realms, and limits.
2026-11-19 00:50:28 +08:00
ldm0 0fe1ea6967 feat(css): implement native numeric value operations
Add CSSNumericValue arithmetic, structural equality, and unit conversion
using native math operands, f64 values, and generated receiver checks.
Preserve WebIDL conversion order and mutable leaf reads, allocate results
in the receiver realm, and throw errors in the callee realm.

Traverse shared graphs iteratively with bounded conversion expansion.
Cover forged/proxy receivers, cross-realm results, overwritten public
properties, precision, special values, and deep/shared expression graphs.
2026-11-19 00:50:28 +08:00
ldm0 04ad924395 feat(css): add native CSS math value objects
Expose CSSMathValue, its seven concrete subclasses and CSSNumericArray in
Window and Worker realms. Preserve native operand identity and validate
numeric types after WebIDL argument conversion, including percent hints.

Add CSSNumericValue.type(), read-only indexed operands and native-slot
serialization with checked exponent arithmetic and iterative graph traversal.
CSSOM math reification and numeric arithmetic remain follow-up work.

Validation: cargo fmt --all; workspace clippy with all targets/features and
-D warnings; cargo nextest run --no-fail-fast. Original numeric WPT: 161/161;
StylePropertyMap: 175/175; Typed OM IDL: 194/544 to 262/544.
2026-11-19 00:50:28 +08:00
ldm0 16fad9018d feat(css): expose native mutable style property maps
Back attributeStyleMap and CSSStyleRule.styleMap with their existing native
CSS declarations, including detached compatibility wrappers. Validate typed
inputs before mutation and preserve WebIDL conversion ordering, receiver
brands, owner realms, declaration notifications and iterator snapshots.

Share native value serialization and escape CSSKeywordValue identifiers.
Explicitly reject unsupported arbitrary/empty unparsed declaration storage
without altering the existing declaration; native CSSMath/transform/image
interfaces remain separate follow-ups.
2026-11-19 00:50:28 +08:00
ldm0 1e27889564 feat(css): expose native Typed OM numeric factories 2026-11-19 00:50:28 +08:00
ldm0 2e947171d2 fix(css): preserve Typed OM numeric serialization semantics 2026-11-19 00:50:28 +08:00
ldm0 b0a5123bb3 feat(css): parse native Typed OM style values 2026-11-19 00:50:28 +08:00
ldm0 3b0a853fdb feat(css): add native unparsed Typed OM values 2026-11-19 00:50:28 +08:00
ldm0 99ca635122 feat(svg): expose remaining filter primitive interfaces 2026-11-19 00:50:28 +08:00