Commit Graph
4852 Commits
Author SHA1 Message Date
ldm0 e2bd2b0932 fix(fetch): ignore URL fragments in the raw memory cache 2026-11-22 02:02:03 +08:00
ldm0 fd9ebc742a fix(fetch): preserve body receipt across native decoding failures 2026-11-22 02:02:03 +08:00
ldm0 cd96e44aec fix(performance): retain resource timing across Window request failures 2026-11-22 02:02:03 +08:00
ldm0 5ca9cdbad9 fix(dom): preserve iframe insertion order in Window and Document lookups 2026-11-22 02:02:03 +08:00
ldm0 61a777c0e3 fix(dom): destroy child navigables without unload events 2026-11-22 02:02:03 +08:00
ldm0 de7e97a6bd fix(fetch): honor cache-only requests and stale constraints 2026-11-22 02:02:03 +08:00
ldm0 92f2fe17be fix(fetch): match cached responses using Vary 2026-11-22 02:02:02 +08:00
ldm0 46562eeadf fix(fetch): revalidate browser memory cache responses 2026-11-22 02:02:02 +08:00
ldm0 389928f77d fix(performance): expose native resource timing response metadata
Add the remaining response metadata and router getters with native JSON snapshots. Preserve request, interim and final header observations through Window and Worker fetch lifecycles, and filter iframe encoding metadata before discarding redirect provenance.

Validation: cargo fmt --all; strict workspace/all-target/all-feature Clippy; 22470 nextest PASS with 16 existing skips; 2114 retained original WPT PASS; 24/24 interim-response tests and 28/28 native metadata contract checks. Original WPT gained 106 PASS without losing existing PASS.
2026-11-22 02:02:02 +08:00
ldm0 175d45d1c1 fix(worker): publish fetch and XHR resource timing
Own Worker resource timing independently of CDP records and retain native response boundaries across streaming, failure, and cancellation. Keep completed byte counts and abort status when JavaScript delays transport delivery.

Share native streaming IO between synchronous and asynchronous XHR, retire the previous Worker request on open(), and use the saved Worker origin throughout CORS, ORB, and response construction.

Validation: cargo fmt; strict workspace all-targets all-features Clippy; 22463 nextest passes; 86 Worker integration checks; original HTTP/HTTPS Worker timing WPT timeouts become passes with no retained PASS losses.
2026-11-22 02:02:02 +08:00
ldm0 b88f4e15ec fix(worker): reuse native cache for imported scripts 2026-11-22 02:02:02 +08:00
ldm0 250f398a46 fix(worker): publish imported script resource timing
Retain fetch outcomes separately from script validation and publish native resource entries before executing imports or propagating loader errors. Preserve requested URLs and filter response information through the worker origin and TAO policy.

Share resource timing buffer operations across page and worker registries, deliver worker overflow through the native networking queue, and expose PerformanceResourceTiming in workers. Cover import outcomes, buffering, trusted events and close-time cleanup.
2026-11-22 02:02:02 +08:00
ldm0 e1164686c3 fix(encoding): validate decoder stream chunks with Web IDL 2026-11-22 02:02:02 +08:00
ldm0 b784cc7995 fix(encoding): expose branded text stream prototype attributes 2026-11-22 02:02:02 +08:00
ldm0 35936545e1 fix(encoding): snapshot decoder input after options conversion 2026-11-22 02:02:02 +08:00
ldm0 7b70f21bcd fix(encoding): preserve decoder and BOM state after stream errors
Preserve codec state across streaming errors, serialize BOM state only for successful output, and reset both at non-stream boundaries. Cover ISO-2022-JP recovery and Unicode BOM handling in native, Window, and Worker tests.
2026-11-22 02:02:02 +08:00
ldm0 869082c897 fix(encoding): preserve legacy decoder state across empty chunks 2026-11-22 02:02:02 +08:00
ldm0 728b32c7c8 fix(encoding): preserve UTF-16 boundaries in encoder streams 2026-11-22 02:02:02 +08:00
ldm0 db316be5f2 fix(encoding): use standard label parsing for text decoders
Pass labels directly to the shared encoding_rs parser in TextDecoder and
TextDecoderStream so Unicode whitespace cannot hide invalid labels. Keep
the existing derived argument conversion order.

Add a shared 512-case native/browser regression covering valid ASCII
whitespace, invalid label characters, aliases, replacement rejection and
conversion semantics. Original Encoding WPT gains 10,656 passing checks
with no passing-test losses.
2026-11-22 02:02:02 +08:00
ldm0 c4b96a012d fix(url): create query objects with intrinsic bindings 2026-11-22 02:02:02 +08:00
ldm0 380cadd025 fix(dom): preserve recursive Range subfragments and tree order 2026-11-22 02:02:02 +08:00
ldm0 96683795ea fix(dom): preserve partial Range content processing order 2026-11-22 02:02:02 +08:00
ldm0 94f27f2636 fix(dom): preserve Range contents across unload reentrancy 2026-11-22 02:02:02 +08:00
ldm0 7300ba33ab fix(streams): honor async-from-sync iteration in ReadableStream.from 2026-11-22 02:02:02 +08:00
ldm0 dae7144a03 fix(file-api): schedule Blob reads on native file-reading tasks
Share Window and Worker file-reading queues between Blob byte delivery
and FileReader phases. Allocate results in the Blob realm and retain the
Window execution context across document.open while retiring removed realms.

Cover FIFO, task checkpoints, BYOB, cancellation, constructor replacement
and cross-realm reads. Drive existing Blob consumers through real Page tasks
and correct the directory-reader document.open expectation against Chromium.

Validation: cargo fmt; workspace/all-targets/all-features clippy with warnings
denied; nextest 22399 passed, 16 skipped; 5434 original WPT assertions with
no passing-test or harness regressions.
2026-11-22 02:02:02 +08:00
ldm0 acd3785676 fix(file-api): remove the initial UTF-8 BOM from Blob.text 2026-11-22 02:02:02 +08:00
ldm0 863fa58de5 fix(file-api): convert constructor inputs before processing Blob parts 2026-11-22 02:02:02 +08:00
ldm0 2731a65d48 fix(webvtt): tokenize cue text and build native DOM nodes
Preserve script DOMString UTF-16 while applying WebVTT token recovery,
HTML character references, annotation normalization and ruby/lang rules.
Build native timestamp instructions and owner-Document HTML nodes without
calling author DOM factories or reading overridden cue text properties.

Correct the empty-cue native test oracle to the empty WebVTT node list.
Retain the original test name and nonempty Text identity/data coverage.

Validation: fmt, workspace clippy and 22,385 nextest tests pass.
Original non-layout WPT gains 64 passes with no previously passing loss.
2026-11-22 02:02:02 +08:00
ldm0 f170e0fb85 fix(webvtt): parse region blocks and preserve cue region identity
Parse REGION metadata and resolve cue references to the last matching
file-local region. Apply setting-order rules and ignore late definitions.

Materialize region objects from native prototypes and private state once
per file, preserving shared cue identity and isolation between tracks.
2026-11-22 02:02:02 +08:00
ldm0 1c94b5c559 fix(webvtt): bind cue and region attributes to native state
Add VTTRegion and the missing VTTCue alignment and region accessors with
native WebIDL receiver checks. Preserve UTF-16 and unbounded end times.

Build parsed cues from native prototypes and private slots, and create
HTML fragments in the cue realm's associated Document. Correct the two
obsolete native assertions that rejected positive Infinity end times.
2026-11-22 02:02:02 +08:00
ldm0 1848c5b2ce fix(webvtt): validate files and recover cue blocks 2026-11-22 02:02:02 +08:00
ldm0 da10637d3e fix(media): preserve pending loads across document.open
Keep media resources, network contexts, and completion tasks bound to the
surviving LocalWindow instead of the replaced parser transaction. Release
old parser delays while retaining each resource's load-event flag, and
resume Window load through the existing lifecycle driver.

Cover phased and in-flight loads, play promises, repeated parser replacement,
load reset, and real Window retirement with a shared 86-case fixture.
2026-11-22 02:02:02 +08:00
ldm0 85b60eb648 fix(media): preserve selected resources across document.open 2026-11-22 02:02:02 +08:00
ldm0 b285a296e5 fix(media): track resource-owned played ranges and snapshot realms 2026-11-22 02:02:02 +08:00
ldm0 b87e527ebb fix(media): implement finite playback endings and loop rewinds 2026-11-22 02:02:02 +08:00
ldm0 6f1f800314 fix(media): read cue fields and lists from native state 2026-11-22 02:02:02 +08:00
ldm0 ee11166535 test(xhr): gate upload reads before abort and reopen 2026-11-22 02:02:02 +08:00
ldm0 23a46c3511 fix(media): preserve default start positions and seek notifications 2026-11-22 02:02:02 +08:00
ldm0 3ac443f0ff fix(media): publish duration and resize before metadata events 2026-11-22 02:02:02 +08:00
ldm0 71abb21398 feat(media): read bounded Ogg Vorbis durations 2026-11-22 02:02:02 +08:00
ldm0 047965e6f7 fix(media): retain playback intent across document adoption
Moving an audio or video element to another Document reset paused even when
playback was active. Retain playback intent while resource selection restarts
under the new owner, allowing the clock and decoded frames to resume.

Add a 49-case realm/transport/media matrix and a 100-adoption decoder release
check. Correct two owned adoption expectations and retain their metadata,
Promise-realm and cancellation checks. Original WPT assertions stay unchanged.

Full fmt/clippy and 22,345 native tests pass with zero automatic retries.
The expanded original WPT cohort gains two PASS results with no prior losses.
2026-11-22 02:02:02 +08:00
ldm0 56014eaf1a test(media): cover cold volume writes and reentrant conversion
Check initial same-value writes before any playback or muted setter primes the
control state. Check that reentrant numeric conversion compares against the
volume written during conversion and queues only one notification.

Keep the existing normative default/true/false muted-state assertions intact.
The frozen parent already passes all 208 media control cases. Full fmt/clippy
and 22,344 native tests pass with 32-way execution and zero automatic retries.
2026-11-22 02:02:02 +08:00
ldm0 733928a1c2 fix(canvas): resample ImageBitmap crops at pixel centers
Map destination pixel centers to source texel centers and isolate interpolation
inside the requested crop. Sample padded crops on a transparent-black grid
without allocating a crop-sized intermediate image. Preserve premultiplied
filtering, HDR precision and exact nearest or unscaled pixel copies.

Add pixel, crop and cross-realm regressions. Full fmt/clippy and 22,343 native
tests pass; original video-resize WPT passes over HTTP and HTTPS, with no prior
PASS losses in the 1,874-subtest cohort.
2026-11-22 02:02:02 +08:00
ldm0 0abad629bd fix(media): release failed video decoders before further loads 2026-11-22 02:02:02 +08:00
ldm0 ff8b65aae2 feat(media): publish decoded video frames through owned media tasks 2026-11-22 02:02:02 +08:00
ldm0 8f0e5a3225 feat(media): add bounded native WebM VP8 and VP9 decoding 2026-11-22 02:02:02 +08:00
ldm0 fd82559403 fix(media): advance playback through owned monotonic clock tasks 2026-11-22 02:02:02 +08:00
ldm0 e2587a485a fix(media): route windowless resource tasks through their relevant global 2026-11-22 02:02:02 +08:00
ldm0 c149142e2c fix(media): reject empty local media responses 2026-11-22 02:02:02 +08:00
ldm0 da75c05cdb fix(media): queue volume changes and validate volume range 2026-11-22 02:02:02 +08:00