Commit Graph
32 Commits
Author SHA1 Message Date
ldm0 b30e220fc5 fix(performance): retain native navigation timing 2026-11-20 22:48:01 +08:00
ldm0 9eef35e69f fix(webidl): classify DOMException through V8 native error hooks
Register V8's API-wrapper error classifier for Window and worker isolates,
using the existing native DOMException interface brand and inheritance.
Keep Error.isError itself unchanged, including ordinary Error and Proxy
classification and author getter avoidance.

Allocate native exception data/failures through cached interface instance
templates. Preserve sparse facade/host contexts with a cached API wrapper
allocator and their existing declaration/prototype policy. Keep the data
versus failure-stack boundary, native constructor path and wire format.

Cover script/subclass/native/cloned exceptions, genuine and forged receivers,
worker kinds, bare and retired cold contexts, and cross-realm behavior.

Validation: cargo fmt --all; cargo clippy --workspace --all-targets
--all-features -- -D warnings; cargo nextest run --no-fail-fast
(23219 passed, 17 existing skips, 32 threads, no automatic retries).
2026-11-20 22:47:56 +08:00
ldm0 fbe28455f4 fix(errors): separate exception data from native failure stacks
Build script-created DOMException subclasses and deserialized exception data without attaching a new stack. Native failure factories keep V8 stack capture, including the WebTransport session-failure path that previously reused its clone builder.

Preserve inherited stack accessors, native clone fields, realm and reference identity, getter avoidance, and ordinary JS Error stacks. Reuse a fixed Chromium fixture in Window, child Window, classic Worker, and module Worker.

Validation: cargo fmt --all; cargo clippy --workspace --all-targets --all-features -- -D warnings; cargo nextest run --no-fail-fast (23213 passed, 17 existing skips, 32 threads, no retries).
2026-11-20 22:47:56 +08:00
ldm0 5e07fda543 revert(webidl): retain native V8 constructor allocation
Withdraw the deferred-prototype entry introduced by cf7650f744 and migrate
all 22 public constructor kinds back to their native FunctionTemplate.
Remove hidden NewTarget state and the vendored callback argument override.

Accept Chromium's prototype lookup timing and primitive prototype fallback
instead of paying for per-construction Proxies, hidden functions and state.
Keep native brands, dictionary conversion and the separate HTMLConstructor
path. Preserve the collection Reflect.set intrinsic in its own module.

Cover native function identity, subclassing, explicit and cross-realm
prototypes, exception order, and mutation during argument conversion.
2026-11-20 22:47:56 +08:00
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 19a546ecb2 fix(navigator): preserve native plugin collection semantics 2026-11-20 22:47:55 +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 8993edc2db fix(webrtc): complete local data channel closing and connection shutdown 2026-11-20 22:47:51 +08:00
ldm0 189e4fdcdb feat(canvas): implement native Path2D geometry and drawing 2026-11-20 22:47:49 +08:00
ldm0 37ebf0bc4e feat(push): expose native interfaces with shared state 2026-11-20 22:47:46 +08:00
ldm0 df885c8d6a fix(canvas): store typed fill and stroke colors
Sync main and use a single Stylo color value for Canvas style serialization and drawing.
2026-11-20 12:36:44 +08:00
ldm0 7818b14864 refactor(webapi): move Streams bindings into moli-webapi 2026-11-18 20:16:52 +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 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
ldm0 e0a134eab5 refactor(webapi): extract value event constructors and payloads 2026-11-17 04:40:15 +08:00
ldm0 9f08ea7640 refactor(webapi): extract audio, performance and navigator values 2026-11-16 21:44:29 +08:00
ldm0 5e13cf5842 refactor(webapi): extract event payload bindings 2026-11-16 21:44:29 +08:00
ldm0 756d0adcb8 refactor(webapi): extract platform error and value bindings 2026-11-16 19:34:08 +08:00
ldm0 e1eaa7006a refactor(webapi): extract geometry and standalone value bindings 2026-11-16 17:42:05 +08:00
ldm0 e27fb8f939 refactor(webapi): extract native catalog and DOMRect bindings 2026-11-16 16:02:52 +08:00