Commit Graph
4808 Commits
Author SHA1 Message Date
ldm0 a447004edc fix(media): preserve default start positions and seek notifications 2026-11-21 20:03:33 +08:00
ldm0 02c70389ea fix(media): publish duration and resize before metadata events 2026-11-21 20:03:33 +08:00
ldm0 9aa30142b8 feat(media): read bounded Ogg Vorbis durations 2026-11-21 20:03:33 +08:00
ldm0 9760c9d186 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-21 20:03:33 +08:00
ldm0 be9717802b 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-21 20:03:33 +08:00
ldm0 962c0ca7b7 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-21 20:03:33 +08:00
ldm0 a73cb0eae6 fix(media): release failed video decoders before further loads 2026-11-21 20:03:33 +08:00
ldm0 343c7381ec feat(media): publish decoded video frames through owned media tasks 2026-11-21 20:03:33 +08:00
ldm0 5af09283a3 feat(media): add bounded native WebM VP8 and VP9 decoding 2026-11-21 20:03:33 +08:00
ldm0 d75f2c2156 fix(media): advance playback through owned monotonic clock tasks 2026-11-21 20:03:33 +08:00
ldm0 9735d43ae2 fix(media): route windowless resource tasks through their relevant global 2026-11-21 20:03:33 +08:00
ldm0 c00a9bb196 fix(media): reject empty local media responses 2026-11-21 20:03:33 +08:00
ldm0 94e2e6fffc fix(media): queue volume changes and validate volume range 2026-11-21 20:03:33 +08:00
ldm0 99e0315893 fix(dom): retain default mute state until an explicit preference 2026-11-21 20:03:33 +08:00
ldm0 ca284c1092 fix(media): queue playback events and preserve pending play requests
Keep pending play requests in native element state and settle them through
owned media tasks. Preserve media object Promise realms and complete queued
settlements before load discards events. Reject failed requests in the error
task, and reject stale playback epochs before any task-end checkpoint.

Defer resource selection and removal checks to stable state and restart
media when its Document changes. Cover main/iframe calls, windowless media,
shadow-tree adoption, and captured-task cancellation without draining timers
or unrelated script work.
2026-11-21 20:03:33 +08:00
ldm0 70c4cc66cb fix(media): dispatch canplaythrough after canplay 2026-11-21 20:03:33 +08:00
ldm0 f838759572 fix(images): honor EXIF orientation in native raster decoding 2026-11-21 20:03:33 +08:00
ldm0 b9ae0d3967 fix(svg): update image resources for namespaced href mutations 2026-11-21 20:03:33 +08:00
ldm0 dac0301b68 fix(canvas): render SVG image sources at consumer resolution 2026-11-21 20:03:33 +08:00
ldm0 f282d42541 fix(canvas): transfer OffscreenCanvas through structured cloning 2026-11-21 20:03:33 +08:00
ldm0 980fc70c26 fix(canvas): transform and sample drawImage sources natively 2026-11-21 20:03:33 +08:00
ldm0 83ea53749c fix(canvas): apply compositing operators and render native shadows 2026-11-21 20:03:33 +08:00
ldm0 7db09a082c fix(messaging): validate MessagePort state in ordered transfer steps 2026-11-21 20:03:33 +08:00
ldm0 a38bdaa6e3 feat(canvas): support native ImageBitmap cloning and transfer 2026-11-21 20:03:33 +08:00
ldm0 d4c8e2ff4a feat(image): preserve native raster color profiles and precision 2026-11-21 20:03:33 +08:00
ldm0 69b1fd7212 feat(canvas): render native patterns and propagate origin-clean state 2026-11-21 20:03:33 +08:00
ldm0 66dc9f3de3 feat(canvas): render native linear, radial and conic gradients
Replace the gradient shell with branded native geometry and mutable color
stops. Share paint sampling across fills, strokes and text, using the drawing
CTM and receiving context color space while preserving assigned object
identity and registered native proxies.

Use WebIDL double conversion and receiver validation before callbacks, and
allocate factory results in the receiver realm with callee-realm exceptions.
Keep uncovered geometry and transparent nonfinite colors out of sampling.

Validation: fmt, workspace clippy with all targets/features and warnings
denied, and nextest (22269 passed, 16 skipped). Original gradient/style WPT
improves from 890 to 1168 of 1192; all existing Canvas PASS cases are retained.
2026-11-21 20:03:33 +08:00
ldm0 704bbb74f9 feat(canvas): add native compositing operators and recognize clear 2026-11-21 20:03:33 +08:00
ldm0 3f5d883866 fix(canvas): implement native clipping regions and viewport projection 2026-11-21 20:03:33 +08:00
ldm0 41b853c99b fix(canvas): preserve native path coordinate range 2026-11-21 20:03:33 +08:00
ldm0 594111c08a fix(canvas): implement native stroke hit testing 2026-11-21 20:03:33 +08:00
ldm0 5b6bc16a47 fix(canvas): implement native fill hit testing 2026-11-21 20:03:33 +08:00
ldm0 2319a69dda 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-21 20:03:33 +08:00
ldm0 c8fd8faaaa fix(canvas): honor ImageData color spaces and pixel formats 2026-11-21 20:03:33 +08:00
ldm0 2447c44785 fix(canvas): preserve native ImageData construction and clone graphs 2026-11-21 20:03:33 +08:00
ldm0 dffa24384a fix(canvas): preserve pixel rectangles and native receivers 2026-11-21 20:03:33 +08:00
ldm0 b8a6dd9c37 fix(canvas): preserve native shadow and text style state 2026-11-21 20:03:33 +08:00
ldm0 ff148ae4b3 fix(dom): preserve windowless event policy and node ownership 2026-11-21 20:03:33 +08:00
ldm0 5c4a2239d6 fix: reconcile native bindings and paint metadata after rebase 2026-11-21 20:03:33 +08:00
ldm0 c0a67bd510 fix(input): preserve native click state and capture release ordering
Keep shared native per-button presses valid through release callbacks,
retaining flat-tree targeting and synchronous DOM-removal invalidation.
Release capture after compatibility mouseup while preserving hover
reconciliation and the captured click target.

Correct custom reparent/reinsert expectations against preserved and fresh
Chromium observations, and cover removing only one chorded button target.
Remove the obsolete callback-layer release enum.

Validation: cargo fmt --all; full workspace/all-targets/all-features
clippy with -D warnings; nextest 22178 passed, 16 skipped, 32 threads,
zero retries. Chromium 145 reference: 240 cases and 2904 checks passed.
2026-11-21 20:03:33 +08:00
ldm0 fd9291049b fix(events): preserve uncompiled handler source locations 2026-11-21 20:03:33 +08:00
ldm0 ee50ff58c9 fix(parser): preserve original script positions in CSP reports
Track opt-in original tag positions in html5ever, including UTF-16,
CRLF, character-reference rewinds and chunk boundaries. Carry completed
script start positions through the existing parser handoff and use them
for child Document CSP reports. Register synchronous document.write
handoffs before CSP so unknown provenance remains unknown.

Validation: full workspace fmt, clippy and nextest (22,156 passed,
16 skipped; 32 jobs/threads, no retries), plus 24 upstream/local
html5ever tokenizer and driver tests.
2026-11-21 20:03:33 +08:00
ldm0 a3a7e985ec fix(webidl): deduplicate range wrapper exports after main rebase 2026-11-21 20:03:33 +08:00
ldm0 e45d628a9a fix(csp): admit iframe JavaScript URLs through their source document 2026-11-21 20:03:33 +08:00
ldm0 2a444cd800 fix(csp): report inline violations through their document task owner 2026-11-21 20:03:33 +08:00
ldm0 5479ade45b fix(events): check inline handler CSP when attributes change 2026-11-21 20:03:33 +08:00
ldm0 08ae5a52a0 fix(events): preserve uncompiled handler source as native UTF-16 2026-11-21 20:03:33 +08:00
ldm0 337f1dabcf fix(window): preserve inherited opaque origin access across Pages 2026-11-21 20:03:33 +08:00
ldm0 e1f4751f89 fix(dom): use native adoption for windowless Documents 2026-11-21 20:03:32 +08:00
ldm0 02385680f1 fix(csp): queue inline handler violations for their native targets 2026-11-21 20:03:32 +08:00