Commit Graph
4587 Commits
Author SHA1 Message Date
ldm0 27f198cb7d fix(canvas): save and restore native 2D drawing state 2026-11-19 00:59:46 +08:00
ldm0 0df318c35e chore(runtime): preserve interface registration order after rebase 2026-11-19 00:59:46 +08:00
ldm0 0d387aee03 fix(webapi): reconcile native interface bindings after main rebase
Keep a single native identity and constructor registration for the API
families present on both main and the WPT branch. Preserve the existing
WebCodecs frontend state and task-driven support queries, inherited event
dictionaries, secure-context handler exposure, and RTCError snapshots.

Align incoming constructor coverage with frontend initialization and
retain the original interface, realm and callback checks. Check
lexicographic dictionary reads including registered AVC/HEVC members.
Restore the exact pre-rebase Worker WebGL testcase so old coverage is
preserved alongside the six incoming main tests.

Validation: fmt, workspace clippy, nextest (21782 passed, 16 skipped).
2026-11-19 00:59:46 +08:00
ldm0 0bc9a470c4 fix(canvas): transfer OffscreenCanvas pixels to native ImageBitmap
Move the original pixel store and premultiplication metadata into a
branded ImageBitmap, then allocate an independent blank replacement.
Preserve context identity, existing drawing state and bitmaprenderer
natural dimensions without applying its presentation alpha composite.

Use the shared derived receiver binding in Windows and workers. Cover
cross-realm methods, native and author Proxies, pixels, subsequent draws,
bitmap closure and both bitmaprenderer alpha modes. Keep the pre-existing
save/restore state-stack gap as a separate conformance diagnostic.

Validation: fmt, workspace clippy, nextest (21776 passed, 16 skipped).
2026-11-19 00:59:46 +08:00
ldm0 06703f41ee fix(renderer): adapt branch services to Window realm execution owners
Move popup Contexts through the same runtime owner as default and child
realms. Carry the resource owner through deferred retirement, migrate
remaining ScriptVm Context accesses, and remove obsolete native surface
cleanup now owned by traced V8 private slots.

Retire canvas Blob callbacks and promises with their exact realm or
LocalWindow. Release queued exports during page teardown and verify that
retired child and isolated realms are collectable while parent work lives.

Drive the incoming public Response error/GC tests through selected Page
fetch tasks while preserving their original error identity assertions.
Read arbitrary completion payloads without filtering undefined; cover
primitive rejection identity including NaN, negative zero, BigInt and Symbol.

Validation: fmt, workspace clippy, nextest (21772 passed, 16 skipped).
2026-11-19 00:59:46 +08:00
ldm0 e02a2410e5 fix(canvas): draw accepted raster images without layout
Retain metadata-only image responses and decode pixels on canvas demand
through the existing resource cache and bounded decoded-byte owner.
Reuse the shared image decoder and preserve resource retirement behavior.

Use interface-specific derived receiver checks and derived 3/5/9 argument
conversion for drawImage. Snapshot sources after observable conversion.
Cover Blob URL revocation, HTTP response ownership, cross-realm brands,
registered native Proxies, budget release and stale resource completion.

Validation: fmt, workspace clippy, nextest (21759 passed, 16 skipped).
2026-11-19 00:59:01 +08:00
ldm0 9de5ceebd2 fix(canvas): encode OffscreenCanvas blobs on owner task queues
Replace the empty-Blob shim with asynchronous PNG/JPEG encoding of the
call-time pixel snapshot. Share the HTML canvas encoder and completion
source while preserving Window ownership and callback behavior.

Use generated receiver, dictionary and Promise bindings. Complete worker
exports through typed worker tasks, keeping V8 handles on their event loop.

Cover native Proxies, borrowed cross-realm calls, option conversion order,
worker Blob cloning and pixels, Window retirement and document.open.
Validation: fmt, workspace clippy and nextest (21735 passed, 16 skipped).
2026-11-19 00:58:36 +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 b6d3caea24 feat(media): add MediaRecorder frontend state and validation 2026-11-19 00:57:40 +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 c593823fe3 feat(media): add MediaSession frontend state and capture shims 2026-11-19 00:57:40 +08:00
ldm0 0144592220 fix(events): preserve construction realms across wrapper worlds 2026-11-19 00:57:40 +08:00
ldm0 ea0fa5ddf0 fix(runtime): adapt streaming decoder and initial history to main 2026-11-19 00:57:40 +08:00
ldm0 82b64d5132 fix(dom): preserve adopted wrappers across isolated worlds 2026-11-19 00:57:40 +08:00
ldm0 d66fb57f4c fix(runtime): integrate WPT fixes with current main
Route existing Window.open targets through native navigation without the
Location-specific before-load replacement rule. Run form event assertions
through queued submission tasks using fully loaded child Documents, and
retain target-realm FormData and request payload checks.

Reconcile the expanded FontFace and IndexedDB fixtures, restore the SVG
precision test registration, and adapt ignored-response assertions to the
NoDocument outcome while retaining response metadata checks.
2026-11-19 00:57:40 +08:00
ldm0 921df7c833 fix(dom): preserve native ownership across Page adoption
Move native subtrees while retaining wrappers, collections, styles, canvas resources, and event registrations. Resolve borrowed EventTarget methods through the native node owner and retain callback realms across adoption.

Add real CDP Page regressions for repeated adoption, native receiver validation, retained views, and closed producer realms. Validated with workspace fmt, all-target/all-feature Clippy, and 32-thread nextest (21695 passed, 16 skipped).
2026-11-19 00:57:40 +08:00
ldm0 2971dafd87 fix(runtime): adapt WPT bindings to main refactors 2026-11-19 00:57:40 +08:00
ldm0 141a1b2927 refactor(dom): add native ownership transfer for detached subtrees 2026-11-19 00:57:40 +08:00
ldm0 202c28493c fix(dom): preserve registry boundaries while importing shadow trees 2026-11-19 00:57:40 +08:00
ldm0 787034567d fix(dom): preserve effective namespace prefix bindings during serialization 2026-11-19 00:57:40 +08:00
ldm0 f86dd39001 fix(dom): preserve ordinary xmlns attributes during XML serialization 2026-11-19 00:57:40 +08:00
ldm0 0fc6509e5a fix(dom): enforce well-formed XML serialization for markup getters 2026-11-19 00:57:40 +08:00
ldm0 343fe3d971 fix(dom): preserve DocumentType UTF-16 across native copies and serialization 2026-11-19 00:57:40 +08:00
ldm0 e7052e2d19 fix(webidl): derive DOMImplementation native receiver and argument checks 2026-11-19 00:57:40 +08:00
ldm0 1421e2032c fix(dom): preserve native XML serialization and Node identity 2026-11-19 00:57:40 +08:00
ldm0 dff4259473 fix(dom): preserve HTML serialization and custom-element UTF-16 2026-11-19 00:57:40 +08:00
ldm0 1ac2005aeb fix(dom): derive attribute value conversion before name validation 2026-11-19 00:57:40 +08:00
ldm0 88bd5ee3e9 fix(trusted-types): preserve policy DOMString code units 2026-11-19 00:57:40 +08:00
ldm0 e2f7b6eb89 fix(dom): preserve UTF-16 attribute mutation snapshots 2026-11-19 00:57:40 +08:00
ldm0 5df13b527c test(svg): preserve legacy rectangle behavior
Guard factory and viewBox values as separate SVGRect objects with finite
float conversion, readonly animation values, and native receiver brands.
Validate 750 checks against Chrome 152 while retaining DOMRect and native
proxy coverage. This replaces the incompatible SVG2 geometry alias.
2026-11-19 00:57:40 +08:00
ldm0 c842636aa4 fix(dom): derive import and adoption argument conversion 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 45402037d3 fix(cssom): convert declaration values before mutation
Use shared WebIDL conversion for cssText and named style setters.
Propagate conversion exceptions without clearing the declaration, convert
values before readonly errors, and convert undefined setProperty arguments
without bypassing property or priority side effects. Reacquire native
declarations after author conversion.

Cover inline, SVG, windowless, stylesheet, constructed stylesheet and
computed declarations across main, iframe and popup realms.
2026-11-19 00:57:40 +08:00
ldm0 054fe35312 fix(cssom): preserve computed style receiver realms 2026-11-19 00:57:40 +08:00
ldm0 c57410874e fix(cssom): create independent computed style declarations 2026-11-19 00:57:40 +08:00
ldm0 cc1e7d321c fix(cssom): validate document flat-tree style targets 2026-11-19 00:57:40 +08:00
ldm0 33987bfb33 fix(file-api): adapt snapshot tests to typed entries 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 5fb93368f5 fix(trusted-types): reject transformed source without extra reports 2026-11-19 00:57:17 +08:00
ldm0 71d0761b18 fix(svg): sample SMIL paths with native presentation clocks 2026-11-19 00:57:17 +08:00
ldm0 3da2d9812c fix(tests): deduplicate module registrations after main rebase 2026-11-19 00:57:17 +08:00
ldm0 e456649bdf fix(svg): reflect marker orientation through native bindings 2026-11-19 00:57:17 +08:00
ldm0 b0f5d16fab fix(forms): preserve token values during parser attribute insertion 2026-11-19 00:57:17 +08:00
ldm0 bbe48da973 fix(touch): derive event conversion and protect native lists 2026-11-19 00:57:17 +08:00
ldm0 9e0ad1934a feat(svg): implement structured path data access 2026-11-19 00:57:17 +08:00
ldm0 ac375751a0 fix(canvas): apply fillRect transforms and native receiver conversion 2026-11-19 00:57:17 +08:00