Commit Graph
4664 Commits
Author SHA1 Message Date
ldm0 ccd00395af fix(cssom): validate document flat-tree style targets 2026-11-21 20:03:31 +08:00
ldm0 b02009bf4a fix(file-api): adapt snapshot tests to typed entries 2026-11-21 20:03:31 +08:00
ldm0 ec03fdae01 fix(svg): dispatch native SMIL timing events 2026-11-21 20:03:31 +08:00
ldm0 03736edc75 fix(trusted-types): reject transformed source without extra reports 2026-11-21 20:03:31 +08:00
ldm0 c08eb039f0 fix(svg): sample SMIL paths with native presentation clocks 2026-11-21 20:03:31 +08:00
ldm0 40a665b6c5 fix(tests): deduplicate module registrations after main rebase 2026-11-21 20:03:31 +08:00
ldm0 6c26e13411 fix(svg): reflect marker orientation through native bindings 2026-11-21 20:03:31 +08:00
ldm0 0b1274637c fix(forms): preserve token values during parser attribute insertion 2026-11-21 20:03:31 +08:00
ldm0 0496afb148 fix(touch): derive event conversion and protect native lists 2026-11-21 20:03:31 +08:00
ldm0 c796e2d918 feat(svg): implement structured path data access 2026-11-21 20:03:31 +08:00
ldm0 46e78f5d51 fix(canvas): apply fillRect transforms and native receiver conversion 2026-11-21 20:03:31 +08:00
ldm0 ec0b63df24 feat(canvas): implement native Path2D geometry and drawing 2026-11-21 20:03:31 +08:00
ldm0 9b5b356023 fix(canvas): expose native transform snapshots 2026-11-21 20:03:31 +08:00
ldm0 a074aab769 fix(performance): validate observer options and retain observe mode 2026-11-21 20:03:31 +08:00
ldm0 a20ed8852f fix(webidl): preserve dictionary ordering and inherited members 2026-11-21 20:03:31 +08:00
ldm0 c0939c2257 fix(svg): implement deprecated redraw method semantics
Expose the four SVG2 redraw operations with native receiver validation. Derive required unsigned-long argument conversion for suspendRedraw and unsuspendRedraw, preserve conversion errors and return the specified constant handle 1 without DOM effects. Cover cross-realm and windowless roots, observable conversion, forged receivers, and registered native Proxies.
2026-11-21 20:03:31 +08:00
ldm0 a96e6b60c7 fix(svg): resolve geometry lengths in their SVG user space
Share native SVG length resolution between geometry and animated values. Resolve physical units, independently specified viewport dimensions, nested percentage viewports and viewBox user coordinates. Cover live/windowless owner and callee realms, absolute-unit detached geometry and viewport mutations without a layout backend.
2026-11-21 20:03:31 +08:00
ldm0 cf7a857011 fix(svg): reflect CORS attributes with native receiver validation
Expose nullable DOMString crossOrigin on SVG image/script and readonly SVGAnimatedString crossOrigin on filter images. Reuse canonical CORS keywords, UTF16 attribute writes and reaction scopes. Derive strict receiver and nullable argument conversion, preserve registered native proxy identity, ignore non-null namespaces, and create filter value objects in their owner realm.
2026-11-21 20:03:31 +08:00
ldm0 0a9df5297b fix(svg): reflect filter enumerations with native receiver validation
Expose GaussianBlur edgeMode with its none default and shared edge-mode keywords/constants. Preserve arithmetic as composite operator 6 and keep the existing lighter extension at 7. Use derived SVGAnimatedEnumeration receiver and argument validation, canonicalize registered native proxies, and reflect mutations back to native owner attributes. Cover live/windowless documents, invalid keywords, cross-realm bindings, conversion order, and registered/author proxies.
2026-11-21 20:03:31 +08:00
ldm0 3b76db12ae test(navigation): await popup cancellation observers before snapshots
Observe cancellation through the four existing navigation Promise callbacks before capturing the closed popup state. Preserve late handler release and every lifecycle, Promise, and error-identity assertion, avoiding a fixed 100ms delay as proof that cancellation callbacks have settled.
2026-11-21 20:03:31 +08:00
ldm0 888895fc44 fix(svg): implement native viewport and descendant ID queries
Implement SVGElement.viewportElement and SVGSVGElement.getElementById with native DOM traversal. Exclude the root and shadow trees from ID lookup, preserve UTF-16 ID equality and existing node identities, and use derived WebIDL argument and receiver validation. Cover borrowed methods, windowless documents, tree mutations, forged receivers, and registered native proxies.
2026-11-21 20:03:31 +08:00
ldm0 d4f7ce740d fix(storage): build dense result arrays without inherited setters 2026-11-21 20:03:31 +08:00
ldm0 1df3d31a25 fix(streams): initialize readable algorithms without inherited setters 2026-11-21 20:03:31 +08:00
ldm0 d437075456 fix(cache): preserve native request state across storage and realms 2026-11-21 20:03:31 +08:00
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