Commit Graph
4640 Commits
Author SHA1 Message Date
ldm0 cc982c36d6 fix(cache): return native query results in the owner realm 2026-11-21 20:03:30 +08:00
ldm0 dfbfaac8de fix(cache): persist CacheStorage creation order 2026-11-21 20:03:30 +08:00
ldm0 a40f99f694 fix(test): include redirect mode in body teardown fixture 2026-11-21 20:03:30 +08:00
ldm0 08f54b843b fix(cache): derive query arguments and preserve DOMString names 2026-11-21 20:03:30 +08:00
ldm0 e85c1599d7 fix(renderer): adapt main fetch and document-start changes 2026-11-21 20:03:30 +08:00
ldm0 aee3c072f6 fix(media): install TimeRanges template bindings once 2026-11-21 20:03:30 +08:00
ldm0 e562a50c46 fix(renderer): trace body metadata and retire module fetch owners 2026-11-21 20:03:30 +08:00
ldm0 86f88f2fe2 feat(cache): implement native add and addAll fetch batches 2026-11-21 20:03:30 +08:00
ldm0 a03897c94b fix(cache): preserve ordered vary variants in atomic storage batches 2026-11-21 20:03:30 +08:00
ldm0 9aee5c5b91 feat(webapi): implement media and transport error values 2026-11-21 20:03:30 +08:00
ldm0 f1f01f54ed fix(dom): unload child documents in their registered execution realm 2026-11-21 20:03:30 +08:00
ldm0 e6882a87d7 fix(eme): implement native encrypted media event payloads 2026-11-21 20:03:30 +08:00
ldm0 8416c89394 fix(svg): validate geometry methods with native receivers 2026-11-21 20:03:30 +08:00
ldm0 1cc6c84f92 fix(fetch): enforce blob URL storage-key access
Authorize captured entries using pinned Window/XHR owners and Worker storage keys. Preserve Request entries when another environment is denied, and use Basic responses for authorized reads, including opaque origins and integrity checks.

Keep Document creation URLs stable across history, transport replacement, and document.open() so self-fetch exemptions remain tied to the original environment.

Validation: cargo fmt --all; strict workspace/all-targets/all-features Clippy; 21465 nextest tests passed, 16 skipped, 32 threads and zero retries.
2026-11-21 20:03:30 +08:00
ldm0 3649d05af5 feat(file-api): capture blob URL creator access keys
Snapshot Blob or MediaSource data together with the creator access key under the store lock. Preserve the data-only API and retain parsed entries independently of revocation.
2026-11-21 20:03:30 +08:00
ldm0 e8a086d5f0 fix(dom): preserve UTF-16 token list operations
Preserve DOMTokenList token identities, indexed values, mutations and stringification as UTF-16 across every reflected token-list kind. Add explicit dom_string16 conversion to WebIDL derives and reuse the existing lossless converter for scalar and variadic arguments. Enable native receiver validation, normalize registered native proxies, and correct the variadic operation lengths while retaining Array iterator intrinsic identities. Correct the local smoke IDL parser to exclude variadic arguments from required arity and cover fixed/variadic combinations. Cover cross-realm, live and windowless documents, reentrant conversion and adoption, and registered versus author-created proxies.
2026-11-21 20:03:30 +08:00
ldm0 2caa97eb6a fix(svg): implement anchor hyperlink attributes
Expose SVG anchor target as a live owner-realm SVGAnimatedString, reflect download/ping/rel/hreflang/type/referrerPolicy through existing DOMString and USVString bindings, and share native hyperlink component callbacks under generated SVGAElement receiver checks. Apply SVG2 href/xlink namespace rules when reading and updating URL components, preserve token-list PutForwards UTF-16, and cover live/windowless documents, both realms, reentrant conversion and registered native Proxies.
2026-11-21 20:03:30 +08:00
ldm0 d6dd122b93 fix(geometry): validate rectangle receivers with native brands
Use generated WebIDL receiver checks for DOMRect, DOMRectReadOnly, SVGRect and SVGAnimatedRect accessors, including the SVG root rectangle factory. Distinguish mutable rectangles from readonly instances before numeric conversion, normalize registered native Proxies to their shared state, and normalize native rectangle clone payloads without granting Proxy serialization capability. Convert legacy SVGRect Float values before checking animation readonly state, propagate conversion exceptions, and retain viewBox synchronization across reentrant conversions. Cover cross-realm and live/windowless HTML/XML behavior plus registered native Proxy regressions.
2026-11-21 20:03:30 +08:00
ldm0 27487e4f79 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-21 20:03:30 +08:00
ldm0 67ee8584d3 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-21 20:03:30 +08:00
ldm0 4a6974d2ee fix(svg): preserve animated-number identity and float reflection
Use generated receiver checks for all 50 owner accessors and SVGAnimatedNumber values. Normalize registered native Proxies, keep cached values in the producer realm, and remove the duplicate interface walk and metadata. Use WebIDL float conversion and round finite reflected values to single precision. Read invalid or overflowing content as the initial value and preserve the other pair component during valid writes. Frozen main/child and live/windowless matrices cover native identity, conversion order, float limits and attribute writeback. This change uses the preceding numeric serialization fix for large-value round trips.
2026-11-21 20:03:30 +08:00
ldm0 3c9bf678c8 fix(svg): validate element receivers through native brands
Enable generated receiver checks for the remaining SVG element attributes and Text operations, including SVGAElement.relList PutForwards. Reject incompatible receivers before conversion while preserving registered native Proxies. Normalize FitToViewBox and token-list owners to their native targets and create cached values in the producer realm. Preserve FitToViewBox mixin applicability checks. Frozen receiver regressions cover live/windowless HTML/XML, cross-realm cold caches, forged/proxy receivers, conversion ordering and registered native Proxy state.
2026-11-21 20:03:30 +08:00
ldm0 18a5a0b892 fix(dom): resolve related Page wrappers through their producer host
Read host-local reflector IDs through the wrapper creation context, including DOMStringMap interceptors and borrowed methods. Create uncached wrappers in the producer realm when related default worlds share canonical identity. A native popup regression borrows opener getters and checks warm/cold dataset, classList and style identity, prototypes and writeback without mutating the opener.
2026-11-21 20:03:30 +08:00
ldm0 99bae0dbc0 test(protocol): drive related Window fixtures through native Page scheduling
Run network navigation fixtures inside LocalSet with the background navigation scheduler. Attach popup inspector contexts to their owning CDP target and wait for actual asynchronous navigation responses. Preserve the original behavior assertions, request counts and timeouts; record frame state on timeout for diagnosis.
2026-11-21 20:03:30 +08:00
ldm0 50765ced3a fix(renderer): reconcile native Window lifecycle with protocol Page ownership
Use the canonical Window.document and Location objects across related Pages, retain producer identity and inherited about-document settings, and preserve the Page dispatch policy for cross-document history traversal. Route stop and close through exact Document owner actions and apply them through ordered protocol target lanes. Keep unload reentry checks and bootstrap output ordering. Window.opener=null preserves its accessor as specified; adjust the two conflicting protocol expectations while keeping the renderer regression. Register the main realm owner before native HistoryEntry bootstrap so inherited origins remain in committed history; replace an initial-empty entry consistently in both navigate events and Location seeds. Empty URL reuse can retain a focus activation with navigation_requested=false while preserving every document/history/load assertion. The renderer enum producer and exhaustive protocol consumer change together. Formatting, strict workspace Clippy and the complete nextest suite passed against unchanged final source with 32 workers and zero retries.
2026-11-21 20:03:30 +08:00
ldm0 1a4f8a472a fix(runtime): publish owner output while awaiting expressions
Publish settled renderer output before an awaited expression yields to the next owner turn. This lets protocol navigation owner actions run when they are needed to resolve the awaited expression.
2026-11-21 20:03:30 +08:00
ldm0 0e520e8501 fix(runtime): restore resident Page deadlines through active VMs
Calling a same-origin related Window can schedule its timers while that Page remains resident. Refresh deadlines for resident Pages sharing the exact document isolate at owner restoration. Retired entries may already have moved their active VM; avoid dereferencing that absent VM while restoring the entry.
2026-11-21 20:03:30 +08:00
ldm0 91eac1aada fix(file-api): retire owner URLs through the shared target store
Remove the departing owner’s URL bindings through the common store operation. Release Blob references for Blob targets while preserving MediaSource targets and resources retained by other owners.
2026-11-21 20:03:30 +08:00
ldm0 d8e39ef062 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-21 20:03:30 +08:00
ldm0 ea0f9ce9ea fix(svg): validate filter property receivers and reflect windowless values 2026-11-21 20:03:30 +08:00
ldm0 3b25169137 fix(svg): validate filter and marker getter receivers 2026-11-21 20:03:30 +08:00
ldm0 30190262bb fix(svg): implement filter setStdDeviation methods 2026-11-21 20:03:30 +08:00
ldm0 4e50a033d3 fix(dom): retain parser text capacity with lossless UTF-16 values 2026-11-21 20:03:30 +08:00
ldm0 0f0026fef2 fix(svg): synchronize number lists on native attribute mutations 2026-11-21 20:03:30 +08:00
ldm0 17f5a5c1ce fix(svg): reflect filter number lists with live native items 2026-11-21 20:03:30 +08:00
ldm0 6475e4d49e fix(svg): unify filter primitive reflections with native receiver brands
Expose missing in1, in2 and result values through the existing native SVGAnimatedString producer and concrete WebIDL receiver declarations. Remove duplicate generic region registrations and normalize registered native Proxy targets so cached values preserve the element realm.

Verify UTF-16 reflection, conversion order, incompatible receiver rejection, owner realm and registered native Proxy state. cargo fmt, strict workspace Clippy and nextest passed (21270 passed, 16 skipped; 32 threads, no automatic retries).
2026-11-21 20:03:30 +08:00
ldm0 f2c2d1fd00 fix(media): expose native video playback quality snapshots 2026-11-21 20:03:30 +08:00
ldm0 2461420455 fix(mediasession): implement native metadata snapshots and session association 2026-11-21 20:03:30 +08:00
ldm0 f52927a0f9 fix(webmcp): adapt form navigation lifecycle to current main 2026-11-21 20:03:30 +08:00
ldm0 504cc9fc22 fix(permissions-policy): allow sync XHR by default in child frames 2026-11-21 20:03:30 +08:00
ldm0 591981ab82 fix(parser): preserve fragment context form submission state 2026-11-21 20:03:30 +08:00
ldm0 a5c22c414f fix(webidl): defer constructor prototype selection until after conversion 2026-11-21 20:03:30 +08:00
ldm0 64a539ab04 test: reconcile runtime probes after main rebase
Keep one copy of the page and worker XHR upload-startup regression tests after upstream merged the same coverage. Route newly merged AbortSignal event tests through the existing common event_dispatch helper. Preserve all assertions and main release metadata.

Validation: cargo fmt --all; cargo clippy --workspace --all-targets --all-features -- -D warnings; cargo nextest run --no-fail-fast (21100 passed, 16 skipped; 32 test threads, zero automatic retries).
2026-11-21 20:03:30 +08:00
ldm0 d27477f4cb feat(media): expose native time range snapshots 2026-11-21 20:03:30 +08:00
ldm0 ceeb0f896a feat(webcodecs): implement native video color metadata 2026-11-21 20:03:30 +08:00
ldm0 9d5ed7b26f feat(webcodecs): implement native encoded video chunk byte containers 2026-11-21 20:03:30 +08:00
ldm0 5067d6e296 test(fonts): deduplicate validation cases after main rebase 2026-11-21 20:03:30 +08:00
ldm0 0ff374b2e6 test(webauthn): cover effective-domain origin serialization 2026-11-21 20:03:30 +08:00
ldm0 efda64beea test(scripts): gate stylesheet completion on script execution 2026-11-21 20:03:30 +08:00
ldm0 118febff14 test(xhr): gate upload draining on worker cancellation 2026-11-21 20:03:30 +08:00