Commit Graph
112 Commits
Author SHA1 Message Date
ldm0 591530749d fix(dom): preserve HTML serialization and custom-element UTF-16 2026-11-22 02:02:00 +08:00
ldm0 88f76cdecc fix(svg): implement root magnification and translation 2026-11-22 02:02:00 +08:00
ldm0 7ded7a15d0 fix(svg): dispatch native SMIL timing events 2026-11-22 02:02:00 +08:00
ldm0 2511a2efae feat(canvas): implement native Path2D geometry and drawing 2026-11-22 02:01:59 +08:00
ldm0 e3d2424d84 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-22 02:01:59 +08:00
ldm0 4ce4499810 fix(cache): derive query arguments and preserve DOMString names 2026-11-22 02:01:59 +08:00
ldm0 ff5244f443 feat(webapi): implement media and transport error values 2026-11-22 02:01:59 +08:00
ldm0 e5a93f0e96 fix(eme): implement native encrypted media event payloads 2026-11-22 02:01:59 +08:00
ldm0 e1b536ddf5 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-22 02:01:59 +08:00
ldm0 af2be906fe 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-22 02:01:59 +08:00
ldm0 45748a9792 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-22 02:01:59 +08:00
ldm0 0d397844c7 fix(svg): reflect filter number lists with live native items 2026-11-22 02:01:59 +08:00
ldm0 800b5ba292 fix(mediasession): implement native metadata snapshots and session association 2026-11-22 02:01:59 +08:00
ldm0 c85e75f6e7 fix(webidl): defer constructor prototype selection until after conversion 2026-11-22 02:01:58 +08:00
ldm0 6c4de6eb2f fix(events): retain and retarget interaction event sources 2026-11-22 02:01:58 +08:00
ldm0 a38de8fb6d fix(webidl): reconcile Media and CSP registries after rebase 2026-11-22 02:01:58 +08:00
ldm0 938e46843c fix(webidl): reconcile interface registries after main rebase 2026-11-22 02:01:58 +08:00
ldm0 d3d22fbe5a fix(events): unify native auxiliary pointer event construction 2026-11-22 02:01:58 +08:00
ldm0 85f1936da4 fix(events): construct native click with pointer event defaults 2026-11-22 02:01:58 +08:00
ldm0 be032934c4 fix(webidl): preserve UIEvent and CompositionEvent initialization 2026-11-22 02:01:57 +08:00
ldm0 5aa1d77c45 fix(dom): preserve event listener type identity 2026-11-22 02:01:57 +08:00
ldm0 f6a7b77cde feat(webtransport): expose secure transport interface shells 2026-11-22 02:01:57 +08:00
ldm0 e83dbc57b6 feat(speech): expose synthesis event interface shells 2026-11-22 02:01:57 +08:00
ldm0 a0cb803877 feat(webidl): expose reporting interface shells 2026-11-22 02:01:57 +08:00
ldm0 bf7b559931 feat(performance): expose remaining timing interface shells 2026-11-22 02:01:57 +08:00
ldm0 f4ddce7d9f feat(media): expose EncodedVideoChunk interface shell 2026-11-22 02:01:57 +08:00
ldm0 db574f42d1 feat(webrtc): expose transport and RTP interface shells 2026-11-22 02:01:57 +08:00
ldm0 e8662491ba feat(webaudio): expose remaining audio interface shells 2026-11-22 02:01:57 +08:00
ldm0 e592a36cce feat(media): expose media stream and video interface shells 2026-11-22 02:01:57 +08:00
ldm0 27a1f62a85 feat(media): expose encrypted media interface shells 2026-11-22 02:01:57 +08:00
ldm0 ebb003be4b feat(webidl): expose MIDI interface shells 2026-11-22 02:01:57 +08:00
ldm0 1d85f0c876 feat(gamepad): add native interfaces and event payloads 2026-11-22 02:01:57 +08:00
ldm0 e58b1a2c3e feat(wake-lock): expose secure native interfaces with explicit platform denial 2026-11-22 02:01:57 +08:00
ldm0 7718a8cb43 fix(webaudio): preserve Gain processing guards and popup node interfaces 2026-11-22 02:01:57 +08:00
ldm0 9ad5fa7268 feat(push): expose native interfaces with shared state 2026-11-22 02:01:57 +08:00
ldm0 062218eddc 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-22 02:01:56 +08:00
ldm0 874ec6c54b 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-22 02:01:56 +08:00
ldm0 3808cf41e9 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-22 02:01:56 +08:00
ldm0 c886ae3985 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-22 02:01:56 +08:00
ldm0 3a367c9606 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-22 02:01:56 +08:00
ldm0 47b532a43f 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-22 02:01:56 +08:00
ldm0 2adf740464 feat(css): expose native Typed OM numeric factories 2026-11-22 02:01:56 +08:00
ldm0 0fec98e0aa fix(css): preserve Typed OM numeric serialization semantics 2026-11-22 02:01:56 +08:00
ldm0 f88a05f6e3 feat(css): parse native Typed OM style values 2026-11-22 02:01:56 +08:00
ldm0 9af536952c feat(css): add native unparsed Typed OM values 2026-11-22 02:01:56 +08:00
ldm0 785ccd7520 feat(svg): expose remaining filter primitive interfaces 2026-11-22 02:01:56 +08:00
ldm0 55c0c72ad8 fix(svg): synchronize retained animated attribute values 2026-11-22 02:01:56 +08:00
ldm0 05c4d0d7f9 fix(performance): bind legacy timing to native state 2026-11-22 02:01:55 +08:00
ldm0 9e964905cd fix(observers): align notifications with document rendering
Run ResizeObserver after animation callbacks using depth-limited broadcasts
and freshly published layout, then apply focus fixup and sample intersections.
Deliver IntersectionObserver callbacks in a separate exact-Document task.

Preserve constructor order and active observer lifetime in the native registry;
validate Document and realm ownership across callbacks and bound reentrant work.
Sample padding, logical axes, inline boxes and device-pixel zoom from frozen
layout, including iframe geometry, and wake rendering after CSSOM changes.

Validation: fmt and workspace Clippy passed; Nextest 20,240 passed, 16 skipped.
Selected ResizeObserver WPT: 7 pages / 46 subtests passed. 153 original WPT pages
have no new failures; focus and navigation probes passed 31 and 152 cases.
2026-11-22 02:01:55 +08:00
ldm0 c52ced2689 fix(focus): process autofocus candidates from child documents
Join child candidates to their active top-level Document's queue in connection
order. Revalidate ownership and ancestor fragments when flushing, and preserve
blocked candidates until their own Document's stylesheet readiness settles.

Construct focus transitions in the target Document's realm using the intrinsic
FocusEvent with its view, without consulting author constructors or inherited
initialization getters. Cover queue ownership, retirement, policies, stylesheet
wakes, and cross-realm focus event behavior.
2026-11-22 02:01:54 +08:00