Commit Graph
56 Commits
Author SHA1 Message Date
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
ldm0 daadaa8b92 fix(build): deduplicate declarations and tests after main rebase 2026-11-19 00:50:28 +08:00
ldm0 0f0bd0611b fix(performance): bind legacy timing to native state 2026-11-19 00:50:04 +08:00
ldm0 68ee488a83 fix(popup): dispatch native lifecycle events with Document targets
Construct popup load events through the intrinsic Event constructor and apply the legacy Document target override to load and pageshow. Keep dispatch paths and listener receivers on the popup Window.

Cover native interfaces, trust, cancellation, cleanup, redispatch, constructor overrides, retirement during load, and failed initial navigation without a materialized Document.
2026-11-19 00:46:32 +08:00
ldm0 21e774d5be feat(dom): implement Observable subscription lifecycle 2026-11-19 00:35:36 +08:00
ldm0 77fae11b1b 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-19 00:33:34 +08:00
ldm0 1cf95f6bff 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-19 00:31:35 +08:00
ldm0 c6fab4cccc 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-19 00:30:08 +08:00
ldm0 c8f2a7ea52 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-19 00:29:03 +08:00
ldm0 8ff7dbc8f0 fix(trusted-types): align WebIDL interfaces and global accessors 2026-11-19 00:26:57 +08:00
ldm0 b71516ce28 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-19 00:25:52 +08:00
ldm0 bf9f4058a9 fix(events): retarget sources across composed dispatch 2026-11-19 00:25:13 +08:00
ldm0 8946ff1d14 fix(html): align command interface semantics 2026-11-19 00:24:40 +08:00
ldm0 89abd60ed7 fix(dom): bind DOMParser to its relevant document 2026-11-19 00:16:20 +08:00
ldm0 e92aa75009 fix(events): implement beforeunload return semantics 2026-11-19 00:13:42 +08:00
ldm0 b9959f8e1a fix(svg): align matrix factories with DOMMatrix 2026-11-19 00:13:42 +08:00
ldm0 8ce830010f fix(geometry): expose legacy window aliases 2026-11-19 00:13:42 +08:00
ldm0 73f00ed882 fix(geometry): propagate NaN through DOMRect bounds 2026-11-19 00:13:41 +08:00
ldm0 08299ce6a8 fix(geometry): construct DOMRectReadOnly instances 2026-11-19 00:13:41 +08:00
ldm0 6b8baf41e0 refactor(webapi): check declared interface receivers by default 2026-11-18 20:40:51 +08:00
ldm0 bfc5e71355 refactor(webapi): share Blob File and FormData bindings 2026-11-18 20:16:52 +08:00
ldm0 7818b14864 refactor(webapi): move Streams bindings into moli-webapi 2026-11-18 20:16:52 +08:00
ldm0 ecf7800c06 refactor(webapi): share navigation storage and WebSocket values 2026-11-18 20:16:52 +08:00
ldm0 aaf0f0f34b fix(webrtc): expose native sender RTP capabilities
Extracted from ab9bae47ce on wpt-misc-fix.
2026-11-18 14:19:16 +08:00
ldm0 6555a38617 feat(events): implement the native PageRevealEvent constructor
Extract an independent, cohesive change from wpt-misc-fix.

Source-commit: 4ed92703687079f322bfb3b06bac41fa2588e508
2026-11-18 05:26:46 +08:00
ldm0 c9e3c9cf6d refactor(webapi): share pointing keyboard and touch event construction 2026-11-17 20:02:51 +08:00
ldm0 8dacd7680c refactor(webapi): share UI event construction and modifier state 2026-11-17 20:02:51 +08:00
ldm0 e2322b114b refactor(touch): share native TouchEvent construction and conversion
Extract an independent, cohesive change from wpt-misc-fix.

Source-commit: 69e523e6ce
2026-11-17 19:15:20 +08:00
ldm0 eb7cbc095e refactor(webapi): extract constructor values and document host boundaries 2026-11-17 17:14:28 +08:00
ldm0 f7ba5690c2 refactor(webapi): give text codecs independent runtime ownership 2026-11-17 17:14:28 +08:00
ldm0 2e32db6721 refactor(webapi): share base events and WebSocket value constructors 2026-11-17 17:14:28 +08:00
ldm0 7a03d68567 refactor(webapi): extract Highlight, event counts and push values 2026-11-17 14:59:13 +08:00
ldm0 4d37efa579 refactor(webapi): extract IndexedDB values and shared key models 2026-11-17 14:59:13 +08:00
ldm0 b69c282c69 refactor(webapi): extract standalone constructors and navigator values 2026-11-17 14:59:13 +08:00
ldm0 1d82022282 refactor(webapi): extract WebGL and canvas value bindings 2026-11-17 14:59:13 +08:00
ldm0 d3adfaa739 refactor(webapi): extract native collections and observer value bindings 2026-11-17 14:59:13 +08:00
ldm0 47400960dd refactor(webapi): extract Headers and transport-independent header policy 2026-11-17 14:59:13 +08:00
ldm0 5ea8eca75c refactor(webapi): extract URL and standalone platform values 2026-11-17 14:59:13 +08:00
ldm0 a2368fc2bc refactor(webapi): extract message and storage events with native factories 2026-11-17 04:40:15 +08:00
ldm0 1cb6b555f4 refactor(webapi): move RTC signaling bindings and template installation 2026-11-17 04:40:15 +08:00