Commit Graph
96 Commits
Author SHA1 Message Date
ldm0 f3bccbc457 fix(webidl): preserve UIEvent and CompositionEvent initialization 2026-11-24 14:36:22 +08:00
ldm0 b139c0717e fix(dom): preserve event listener type identity 2026-11-24 14:36:22 +08:00
ldm0 beba12504d feat(webtransport): expose secure transport interface shells 2026-11-24 14:36:22 +08:00
ldm0 65f4d174fd feat(speech): expose synthesis event interface shells 2026-11-24 14:36:22 +08:00
ldm0 e025dfc147 feat(webidl): expose reporting interface shells 2026-11-24 14:36:22 +08:00
ldm0 eb7ce49711 feat(performance): expose remaining timing interface shells 2026-11-24 14:36:22 +08:00
ldm0 a7bd832002 feat(media): expose EncodedVideoChunk interface shell 2026-11-24 14:36:22 +08:00
ldm0 f8f72aefef feat(webrtc): expose transport and RTP interface shells 2026-11-24 14:36:22 +08:00
ldm0 7ec88fe5fd feat(webaudio): expose remaining audio interface shells 2026-11-24 14:36:22 +08:00
ldm0 cd2351edcf feat(media): expose media stream and video interface shells 2026-11-24 14:36:22 +08:00
ldm0 b57754aa9c feat(media): expose encrypted media interface shells 2026-11-24 14:36:21 +08:00
ldm0 2f79a5331b feat(webidl): expose MIDI interface shells 2026-11-24 14:36:21 +08:00
ldm0 0c2b54095f feat(gamepad): add native interfaces and event payloads 2026-11-24 14:36:21 +08:00
ldm0 28c1895c36 feat(wake-lock): expose secure native interfaces with explicit platform denial 2026-11-24 14:36:21 +08:00
ldm0 74a2a56a52 fix(webaudio): preserve Gain processing guards and popup node interfaces 2026-11-24 14:36:21 +08:00
ldm0 74355c196f feat(push): expose native interfaces with shared state 2026-11-24 14:36:21 +08:00
ldm0 94449fa04d 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-24 14:36:20 +08:00
ldm0 b8c4302252 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-24 14:36:20 +08:00
ldm0 b63e071e50 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-24 14:36:20 +08:00
ldm0 2f3dd1bc2a 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-24 14:36:20 +08:00
ldm0 0f428d7ffe 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-24 14:36:20 +08:00
ldm0 6af7a4f506 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-24 14:36:20 +08:00
ldm0 bb8c1e392a feat(css): expose native Typed OM numeric factories 2026-11-24 14:36:20 +08:00
ldm0 bc0262c634 fix(css): preserve Typed OM numeric serialization semantics 2026-11-24 14:36:20 +08:00
ldm0 6d13f1dfb1 feat(css): parse native Typed OM style values 2026-11-24 14:36:20 +08:00
ldm0 06c4cc7050 feat(css): add native unparsed Typed OM values 2026-11-24 14:36:20 +08:00
ldm0 abf6310892 feat(svg): expose remaining filter primitive interfaces 2026-11-24 14:36:20 +08:00
ldm0 91985cbb30 fix(svg): synchronize retained animated attribute values 2026-11-24 14:36:20 +08:00
ldm0 fb8d1bd534 fix(performance): bind legacy timing to native state 2026-11-24 14:34:56 +08:00
ldm0 bc7c3bfdc8 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-24 14:34:55 +08:00
ldm0 b54aea7fad fix(window): honor scroll receiver and WebIDL argument semantics
Capture and authorize the Window receiver before converting scroll arguments,
then apply the operation only to that Window's surviving execution context.
Keep popup offsets on their canonical Window instead of the creator global.

Use derived ScrollToOptions and unrestricted-double converters, including
overload selection, conversion order, exception propagation and non-finite
normalization. Return successful Promises in the receiver realm and use the
shared Promise binding adapter for receiver and conversion rejections.

Cover borrowed methods, native/forged/proxy receivers, argument reentrancy and
receiver removal. The upstream window-scroll-arguments WPT improves from 6/12
to 12/12; the 104-case comparison has no lost passing cases or subtests.
2026-11-24 14:34:55 +08:00
ldm0 9839e7880e fix(fonts): validate FontFace descriptors with shared CSS parsing 2026-11-24 14:32:20 +08:00
ldm0 65d9f3c025 feat(dom): implement Observable subscription lifecycle 2026-11-24 14:30:20 +08:00
ldm0 3fd5d337c5 fix(fetch): honor byte ranges in blob URL responses
Resolve single ranges against captured Blob bytes for Window and Worker Fetch
and XHR, including partial response headers and integrity verification. Reject
malformed or unsatisfiable ranges and normalize author headers before CORS
preflight and context overrides so repeated ranges cannot lose earlier values
or skip preflight.

Cover byte boundaries, cloned and revoked URL entries, empty and binary bodies,
request guards, synchronous XHR, and partial-body integrity. Add the two passing
Blob range WPT cases to the verified catalogue.
2026-11-24 14:30:19 +08:00
ldm0 324245b176 fix(input): implement native clipboard shortcuts for text controls
Dispatch trusted clipboard events for native copy, cut, and paste shortcuts,
then apply text-control edits through cancelable, typed InputEvents. Resolve
focus and selection after event listeners and preserve UTF-16 selections,
readonly and password behavior, maxlength, and single-line normalization.

Keep paste data read-only and retire clipboard DataTransfer objects after
dispatch. Use intrinsic event constructors even when page scripts replace
the globals.

Add seven regression tests for editing, cancellation, focus changes, and
clipboard data lifetime. Validate 38 native CDP scenarios against Chromium
and 63 WPT cases; textEditCommands.html now passes with no regressions in
the remaining cases.
2026-11-24 14:30:01 +08:00
ldm0 e300c86f6f feat(close-watcher): implement programmatic lifecycle
Expose the Window-only CloseWatcher interface through native derive bindings.
Implement requestClose(), close(), destroy(), ordered event handlers and
AbortSignal algorithms, including reentrant calls and inactive documents.
Retain the creation realm separately from the reusable WindowProxy so old
watchers cannot become active after navigation.

Add five native regressions covering lifecycle, dictionary conversion,
signal ordering, interface brands, intrinsic events and detached child realms.
Native Escape requests and activation grouping remain follow-up work.

Validation: cargo fmt --all; full workspace/all-target/all-feature Clippy
with warnings denied; cargo nextest run --no-fail-fast (18288 passed,
13 skipped). Selected browser WPTs improve from 0/30 to 25/30; the remaining
failures require native Escape handling or pass through click hit testing.
The cross-document navigation probe matches Chromium.
2026-11-24 14:30:01 +08:00
ldm0 b2fdd52afc fix(fetch): cancel pre-aborted uploads synchronously
Preserve the selected request body stream in Window and Worker fetch
bindings. Reject with the original abort reason before synchronously
canceling a readable upload, and handle the internal cancellation promise
without replacing the fetch rejection or reading public Promise methods.

Merge RequestInit bodies and inherited methods before validating the
effective request. Nullish body overrides inherit the input body; invalid
stream options and GET/HEAD bodies fail construction before cancellation.
Remove the obsolete public then shim and its classified direct-call entry.

Add regression coverage for cancellation timing, reason identity, source
errors, body selection, reentry, validation and modified public intrinsics
in Window, iframe and Worker contexts.

Validation: fmt and strict workspace Clippy passed; nextest passed 17,962
tests with 13 skipped. All 12 pre-abort and 3 ordinary-upload CLI probe
groups passed. The 83-case WPT selection gains two passing subtests with
no regressions or new failures; whole-case counts remain 77 pass / 6 fail.
2026-11-24 14:30:00 +08:00
ldm0 2f00e3a0d1 fix: validate RequestInit consistently before fetch abort 2026-11-24 14:30:00 +08:00
ldm0 8f75271a19 fix(canvas): settle ImageBitmap promises through bitmap tasks
Reject Web IDL conversion errors through the returned Promise and decode
raster Blobs from their bytes on the blocking pool. Deliver results through
a dedicated bitmap task source bound to the exact Page and Window realm.

Retain canvas, ImageData and ImageBitmap pixel snapshots for crop, resize,
flip and alpha processing. Clear pixels on close and reject closed sources
in drawImage. Read HTML canvas dimensions from native attributes.

Cover Promise timing, pixels, intrinsic prototypes, child realm retirement,
document.open and real navigation identity collisions with Page task tests.
2026-11-24 14:29:42 +08:00
ldm0 a6cc27bc66 fix(trusted-types): align WebIDL interfaces and global accessors 2026-11-24 14:29:42 +08:00
ldm0 bb2a026b8d fix(scripts): enforce client-origin CORS before script execution
Bind script loads and cache entries to the document client origin, authorize redirects before following them, and preserve redirect origin taint across Window and Worker Fetch/XHR validation and response filtering.

Check dynamic script CSP before transport, cover real HTTP and lifecycle regressions, and refresh the one newly passing WPT case after fixed-binary CLI/CDP comparisons.
2026-11-24 14:29:42 +08:00
ldm0 bcc4658b4b fix(url): align hierarchical and opaque path encoding
Encode carets in hierarchical paths and encode only the final opaque-path space before query or fragment delimiters. Preserve the encoded path across suffix mutations and remove the obsolete parser trimming and V8 query-removal workaround.

Add five shared-parser and three VM regressions covering constructors, setters, URLSearchParams, DOM links, and cross-realm behavior. Synchronize 11 stale vendored WPT expected records with pinned current WPT data; inputs, the WPT driver, and the remaining expected-failure entry are unchanged.

Validation: cargo fmt --all; cargo clippy --workspace --all-targets --all-features -- -D warnings; cargo nextest run --no-fail-fast (17632 passed, 13 skipped). Vendored all-features unit tests, WPT driver, and 67 doctests pass.

On the same 50 URL/Location WPT cases, CLI and CDP both improve from 42 to 48 passing cases and from 7036 to 7085 passing subtests (+49), with no new failures. The two remaining failures are the existing webkitURL alias and srcdoc scrolling cases. Move the verified non-file anchor case to passed.

CDP smoke: 42/43 groups pass. Puppeteer cannot run because node is absent, reproduced with the before binary.

Artifacts: target/wpt-url-encoding-20260908-AP6CI1. WPT revision: db95fafd1fcef8428805e41eb5705d444e8c67ce. Release SHA256: f132f0afe7f49d627ed9b5d397b1d5b71d80432180b08b1d076aa67637efdd65.
2026-11-24 14:29:42 +08:00
ldm0 12fab75e4f fix(events): retarget sources across composed dispatch 2026-11-24 14:28:15 +08:00
ldm0 2b722ab9a1 fix(html): align command interface semantics 2026-11-24 14:28:14 +08:00
ldm0 86d0acd5b1 fix(dom): bind DOMParser to its relevant document 2026-11-24 14:28:14 +08:00
ldm0 b70786a757 fix(events): implement beforeunload return semantics 2026-11-24 14:28:14 +08:00
ldm0 1c2080be7f fix(svg): align matrix factories with DOMMatrix 2026-11-24 14:28:14 +08:00
ldm0 4ab304aadd fix(geometry): expose legacy window aliases 2026-11-24 14:28:14 +08:00
ldm0 c9f853cc76 fix(geometry): propagate NaN through DOMRect bounds 2026-11-24 14:28:14 +08:00
ldm0 a3abbf2cf8 fix(geometry): construct DOMRectReadOnly instances 2026-11-24 14:28:14 +08:00