Commit Graph
4797 Commits
Author SHA1 Message Date
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
ldm0 f6137ddfad fix(renderer): adapt detached replacements to centralized iframe loads 2026-11-21 20:03:32 +08:00
ldm0 3d048d49bf fix(dom): resolve document and shadow handlers with native brands 2026-11-21 20:03:32 +08:00
ldm0 5b9d1a5d53 fix(renderer): adapt derived bindings after main rebase 2026-11-21 20:03:32 +08:00
ldm0 aaf25c8c4e test(window): observe parent navigation at native task boundaries 2026-11-21 20:03:32 +08:00
ldm0 64d3f4f27a fix(dom): keep element handlers with their native owner 2026-11-21 20:03:32 +08:00
ldm0 e576c713b1 fix(eme): support native media element event handlers 2026-11-21 20:03:32 +08:00
ldm0 8bc6d3bc0b fix(build): reconcile native navigation and response fixtures after main rebase
Pass the existing absent about-document state for target-owned JavaScript
URL navigation. Deduplicate repeated response initializer fields and the
byte-identical DOMImplementation regression brought in by upstream.
Retain the complete original fixture and every distinct passing test.
2026-11-21 20:03:32 +08:00
ldm0 a7c870c35d fix(cdp): preserve renderer stream order before Runtime replies
Queue unconstrained replies behind earlier frozen output from the same
renderer stream. Keep exact load barriers when draining Runtime fences
and allow independent streams to advance without overtaking their own
output. Regress timer console ordering for root and child evaluate and
callFunctionOn through real flattened WebSockets.
2026-11-21 20:03:32 +08:00
ldm0 98390a4ed3 fix(encoding): deduplicate XHR decoder tests after main rebase
Main and the historical XHR integration both added the same two decoder tests. Keep one byte-identical copy of each function, preserving both test names and every case.

Resolve the overlapping decoder file using main's DocumentStreamingDecoder and byte header API. Validate the complete rebased source with repository fmt, workspace all-target/all-feature clippy and full nextest at 32 workers with zero retries.
2026-11-21 20:03:32 +08:00
ldm0 72e3265d29 feat(device): implement native sensor permission requests
Bind DeviceMotionEvent and DeviceOrientationEvent static requests through native WebIDL declarations. Apply per-origin sensor permission state, transient activation and inherited Document Permissions Policy; orientation absolute mode additionally requires magnetometer permission.

Settle callee-realm promises on the dedicated device motion and orientation task source, with exact Window/Document ownership, FIFO selection and stale-owner retirement. Avoid retaining unused opaque origins in inherited policy identity so initial srcdoc Window reuse remains stable.

Validation: repository fmt, workspace all-target/all-feature clippy and full nextest (22,070 passed, 16 skipped; 32 workers, zero retries). Native HTTP/HTTPS permission probes pass 675 checks each; complete original permission WPT improves from 0/18 to 14/18, with four unchanged click-helper precondition failures. Physical sensor delivery and permission UI remain pending.
2026-11-21 20:03:32 +08:00
ldm0 ecdb578d20 feat(webrtc): bind native RTP script transform workers and streams
Queue transform creation and association on the owning Dedicated Worker, including module bootstrap and cross-realm Worker arguments. Reuse native WebIDL brands, clone/transfer validation, ordered event handlers and real Streams; preserve permanent endpoint ownership and locked-stream disassociation.

Expose the current draft Worker transformer and keyframe event interfaces. Keyframe requests reject when no encoder/depacketizer exists; actual media capture, encoded frames, RTP and SFrame packetization remain pending.

Validation: repository fmt, workspace all-target/all-feature clippy, and full nextest at 32 workers with zero retries; complete original RTP WPT files and prior runtime regressions retained.
2026-11-21 20:03:32 +08:00