Commit Graph
2128 Commits
Author SHA1 Message Date
ldm0 bd0ddc3f8d perf(webapi): generate static accessor function names
Move getter/setter name formatting into the derive macro and reuse the
getter name suffix as the property key, avoiding a third stored name.

Keep shared installation and V8 callback mappings. Cover static names
and Unicode property keys in the existing tests.
v1.1.19
2026-10-22 02:56:07 +08:00
ldm0 ce7f503f28 fix(fetch): match Chromium for bare-CR header EOF 2026-10-22 02:33:44 +08:00
ldm0 87527dec85 perf(deps): unify AWS-LC on the latest backend 2026-10-22 01:15:19 +08:00
ldm0 d0f8c2b924 perf(protocol): declare routes once with a trailing-slash layer
Declare each protocol path once and normalize supported trailing slashes
before Router matching. Generate the final-parameter compatibility aliases
needed for empty captures and preserve queries, request contents, discovery
paths and method errors. Registered matches fall from 131 to 76.

Resolve Router state before creating the outer make-service so new
connections clone the completed service. Cover aliases, shared sessions,
POST bodies, request preservation and method-not-allowed responses.

Validation on the unchanged final source tree: cargo fmt --all;
cargo clippy --workspace --all-targets --all-features -- -D warnings;
cargo nextest run --no-fail-fast (20,505 passed, 18 existing skips).
2026-10-21 23:16:23 +08:00
ldm0 c5d91d50d0 perf(cdp): compact protocol metadata at build time
Parse the vendored schema with serde_json::Value and serialize compact JSON
in build.rs. Embed the generated bytes without request-time processing.
Verify the embedded protocol matches the complete vendored schema.

Validation on the unchanged final source tree: cargo fmt --all;
cargo clippy --workspace --all-targets --all-features -- -D warnings;
cargo nextest run --no-fail-fast (20,505 passed, 18 existing skips).
2026-10-21 23:16:23 +08:00
ldm0 6a7ea4e395 perf(cdp): share cold parameter error diagnostics
Move concrete serde error diagnostics into a cold non-generic helper.
Preserve typed deserialization, successful and absent-parameter paths,
method/path/inner logs and InvalidParams responses.

Validation on the unchanged final source tree: cargo fmt --all;
cargo clippy --workspace --all-targets --all-features -- -D warnings;
cargo nextest run --no-fail-fast (20,505 passed, 18 existing skips).
2026-10-21 23:16:23 +08:00
ldm0 2f45fbf990 perf(deps): share the pinned IDNA implementation
Resolve cookie and URL IDNA consumers to the pinned rust-url revision,
removing the duplicate registry implementation. Cover Unicode cookie
domains, canonical URLs and host-only matching.

Validation on the unchanged final source tree: cargo fmt --all;
cargo clippy --workspace --all-targets --all-features -- -D warnings;
cargo nextest run --no-fail-fast (20,505 passed, 18 existing skips).
2026-10-21 23:16:23 +08:00
ldm0 2b6f116c5a perf(telemetry): use static target filtering
Use Targets for the existing level and first-party prefix rules. Preserve
formatting, span context, fallback levels and broken diagnostic sinks;
retain EnvFilter as the test oracle.

Validation on the unchanged final source tree: cargo fmt --all;
cargo clippy --workspace --all-targets --all-features -- -D warnings;
cargo nextest run --no-fail-fast (20,505 passed, 18 existing skips).
2026-10-21 23:16:23 +08:00
ldm0 31ee126de3 perf(webidl): install template accessors from static metadata
Extend metadata installation to consecutive statically named accessors
without callback data. Preserve run boundaries, receiver checks and
getter/setter names and lengths, with native callback mappings resolved
during installation. Cover mixed method/accessor order and generic getters.

This step passes focused WebIDL clippy and 98 binding/derive tests.

Validation on the unchanged final source tree: cargo fmt --all;
cargo clippy --workspace --all-targets --all-features -- -D warnings;
cargo nextest run --no-fail-fast (20,505 passed, 18 existing skips).
2026-10-21 23:16:23 +08:00
ldm0 e1d3638300 perf(webidl): install template methods from static metadata
Batch consecutive statically named template methods without callback data
through constant metadata and a shared installer. Resolve native callback
mappings during installation, preserving aliases, ordering, descriptors
and the original JavaScript callback path.

Keep generic callback data, nested entries, return values and exception
identity covered by the binding regression tests.

This step passes focused WebIDL clippy and 98 binding/derive tests.

Validation on the unchanged final source tree: cargo fmt --all;
cargo clippy --workspace --all-targets --all-features -- -D warnings;
cargo nextest run --no-fail-fast (20,505 passed, 18 existing skips).
2026-10-21 23:16:23 +08:00
ldm0 1b164fc27a perf(webidl): share object function construction
Share object method and accessor construction through a concrete runtime helper.
Preserve callback data, receiver checks and installation order while using
V8's original per-callback adaptation.

This step passes focused WebIDL clippy and 96 binding/derive tests.

Validation on the unchanged final source tree: cargo fmt --all;
cargo clippy --workspace --all-targets --all-features -- -D warnings;
cargo nextest run --no-fail-fast (20,505 passed, 18 existing skips).
2026-10-21 23:16:23 +08:00
ldm0 7d13c04262 fix(navigation): normalize fragments in Location.hash setter 2026-10-21 22:28:15 +08:00
ldm0 e970d26b08 fix(navigation): keep hash setters within the current document
Clearing Location.hash produced a URL without a target fragment and
entered the full-URL navigation path, interrupting load/harness completion and
replacing srcdoc documents. Preserve explicit hash-setter intent in the shared
Location route and compare encoded fragments before taking any navigation.

Keep the main branch's full href/assign no-fragment behavior and retired-facade
checks. Cover top-level hash removal, canonical hash reassignment, and srcdoc
Document identity, origin and NavigateEvent metadata.

Fixes: 536fa76aee (PR #1701)

Validate this independent patch on main ce0781f2ad:
- cargo fmt --all
- cargo clippy --workspace --all-targets --all-features -- -D warnings
- cargo nextest run --no-fail-fast
     Summary [ 493.678s] 20436 tests run: 20436 passed (9 slow), 18 skipped

Original-commit: 9446beaf8c
2026-10-21 22:28:15 +08:00
ldm0 f660ee584f refactor(csp): extract shared policy engine into moli-csp 2026-10-21 22:15:00 +08:00
ldm0 6bf8105d8f ci(nextest): show retries and recovered flaky test names 2026-10-21 22:09:50 +08:00
ldm0 2392c39949 test(cli): drain layout probe output while waiting for exit 2026-10-21 22:09:50 +08:00
ldm0 b6695d0d52 fix(cdp-smoke): opt into debugger pauses when launching Moli 2026-10-21 22:09:11 +08:00
ldm0 510a5cbf3e fix(fetch): parse bare CR response fields like Chromium
Enable the curl fork's opt-in browser HTTP/1 response-field parser before
framing and callbacks. Cover CR-separated/folded fields, leading/repeated
CR, observations, length/chunked bodies and malformed framing across all
three fetch transports. Consume lexmount/curl-rust#3 at 79310cbd939.

Extracted from 3c1dfe9e8a8b69a72cb50ec53c57df7e249c5a67 onto main
8d57e02b3c, retaining its XML fork pin.

Validated cargo fmt --all, strict workspace/all-targets/all-features
Clippy and cargo nextest run --no-fail-fast: 20,490 passed, 18 skipped.
Live CDP checks of six raw-header responses match Chromium exactly in
status, response headers and body. The curl fork's 75 local tests pass.
2026-10-21 19:34:39 +08:00
ldm0 ca2cc82cd6 fix(page): load a new document when navigation removes a fragment
Require a destination fragment in the protocol fragment classifier so
X#frag -> X loads a fresh document instead of calling a renderer path
that rejects the destination. Cover named and empty source fragments,
new loader/request, Runtime context replacement and Page load events.

Extracted from 3af340a5f72504dde0df1dc99651c71b0ee3a7c3 onto main
8d57e02b3c as an independent fix.

Validated cargo fmt --all, strict workspace/all-targets/all-features
Clippy and cargo nextest run --no-fail-fast: 20,489 passed, 18 skipped.
Live Playwright/Puppeteer CDP tests pass for both source fragments,
matching Chromium's new-request/document and load-event behavior.
2026-10-21 19:30:23 +08:00
ldm0 8942523b9e fix(inspector): make debugger pauses opt-in at session creation 2026-10-21 19:20:21 +08:00
ldm0 8d57e02b3c test(wpt): refresh Cases after rebasing latest main
Refresh all 13631 WPT cases at db95fafd1fcef8428805e41eb5705d444e8c67ce after rebasing the style stack and XML fork migration onto main 3ca6888b9d.

9863 pass, 3483 fail, 249 timeout, 26 harness-stalled, 9 error, 1 crash; zero missing. Lists exactly partition frozen Release 8eefbbace618edfbe851b6f2ba2a6231db214e5fbc202bf35d0e16f23d606004.

All 16 status/subtest changes versus the prior validated build were replayed against both binaries for three rounds (96 case executions). No new stable or possible flaky regression; existing variations are recorded without rewriting full-run outcomes. Root fmt, strict workspace/all-target/all-feature Clippy and complete Nextest (20427 passed, 18 skipped) pass. XML 312-case and Chromium overflow 840-case comparisons have no differences.
2026-10-21 17:55:02 +08:00
ldm0 dc1d8f90be test(wpt): refresh Cases after XML fork migration and main rebase
Refresh the complete 13631-case snapshot at WPT db95fafd1fcef8428805e41eb5705d444e8c67ce after the XML fork migration and main rebase.

9866 pass, 3487 fail, 240 timeout, 28 harness-stalled, 9 error, 1 crash; zero missing. Frozen Release SHA-256: b6408a72a6ad26dcd613ced3b0998d6fcf3c9d510d7657011057e294b1637f60.

All nine apparent case/subtest/status regressions were replayed against both frozen builds. No new stable regression; the Trusted Types navigation delta is preexisting flaky behavior. Keep the full-run statuses in these lists.
2026-10-21 17:55:02 +08:00
ldm0 fa293e83e2 refactor(xml): consume lexmount fork instead of vendored parser
Consume lexmount/html5ever at 4574311c63e79bba7d4ddb98cb0562d8dad499ee and remove the XML vendor tree and obsolete ignore exceptions. All 11 production XML source files match the former vendor byte-for-byte; HTML, XML and Stylo still share registry markup5ever 0.40.0 and web_atoms 0.3.0.

Rebased the style stack onto origin/main at ebae4ca6ca.

Validation: Release; cargo fmt --all; strict workspace/all-target/all-feature Clippy; cargo nextest run --no-fail-fast (20413 passed, 18 skipped); 312 paired XML WPT executions and 840 Chromium overflow comparisons with no differences. Full WPT and nine status/subtest-change replays found no new stable regression.
2026-10-21 17:55:02 +08:00
ldm0 a4a188d503 test(wpt): refresh Cases for standalone style upgrade 2026-10-21 17:55:02 +08:00
ldm0 5a1c1cd7ab fix(layout): project scroll overflow in physical coordinates
Aggregate physical descendants once instead of treating Taffy's logical
scroll origin as a physical top-left corner. Share reachable scroll bounds
between scrollbar admission and final projection, including vertical writing
modes and reversed flex flows.

Preserve grid track areas, per-axis clipping, transformed borders, normal-flow
margins and end padding. Anchor vertical RTL block flow at the physical bottom
while keeping relative insets physical.

Add five native browser guards and a live Chromium differential covering
140 fixtures, two scrollbar modes and three fresh-document rounds.

Validation: root fmt, strict workspace/all-target/all-feature Clippy, and
Nextest (20380 passed, 18 skipped); Release; 840 Chromium comparisons;
960 flex geometry controls; MOL-463-468 probes; full 13631-case WPT Cross.
Three old/new control rounds found no new stable case, assertion or harness
regression. Cases are refreshed in the following commit.

Original-commit: d433653f0d
2026-10-21 17:55:02 +08:00
ldm0 da0b0eeae7 test(css): cover Color 5 zero weights and percentage serialization
Original-commit: 6e9e9a7327
2026-10-21 17:55:02 +08:00
ldm0 71a0dd38ea fix(cssom): serialize multiword font families as identifiers
Allow quoted font-family names that contain valid identifiers separated
by single spaces to serialize unquoted. Keep the required quoting for reserved
keywords, invalid identifier starts, and repeated or special whitespace.

The rebased branch failed two WPT cases consistently: quoted Twisty Tie /
Times New Roman and Lucida Grande. Preserve the dash and digit guards from
the original fix and update specified/computed regression coverage.

Fixes: ab4dcb281d (PR #1647)

Validation of the complete fix set, with unchanged source content across
the separate logical commits:
- cargo fmt --all
- cargo clippy --workspace --all-targets --all-features -- -D warnings
- cargo nextest run --no-fail-fast: 20374 passed, 18 skipped

Original-commit: c8738725ef
2026-10-21 17:55:02 +08:00
ldm0 dc3fc902f0 fix(layout): preserve wrapped flex distribution across overflow modes
Adopt the separate Taffy distribution fallback correction. Remove the scroll-only branch, preserve flex-start versus safe center behavior in every writing mode, and add a browser regression that checks child positions for visible and scroll overflow.

Validation: cargo fmt --all; cargo clippy --workspace --all-targets --all-features -- -D warnings; cargo nextest run --no-fail-fast (20287 passed, 18 skipped). The combined working tree passed these checks before this logical split. Frozen Release and focused browser/WPT validation also passed; final full WPT is running.

Original-commit: 4d5786f1a1
2026-10-21 17:55:02 +08:00
ldm0 c00c9f8cd9 fix(layout): retain resolved grid widths and coherent wrapped flex flows
Adopt the separately validated Taffy fixes for vertical min-content float-grid parents and wrapped RTL flex scroll padding. Preserve the upstream intrinsic keyword result, share one physical flow projection, and cover both browser seams with CLI regression tests.

Validation: cargo fmt --all; cargo clippy --workspace --all-targets --all-features -- -D warnings; cargo nextest run --no-fail-fast (20286 passed, 18 skipped). The combined working tree passed these checks before this logical split. Frozen Release and focused browser/WPT validation also passed; final full WPT is running.

Original-commit: 6374fa6725
2026-10-21 17:55:02 +08:00
ldm0 9288430fa0 fix(layout): adopt fork flex and static-position corrections
Pin the tested Taffy fork with intrinsic flex constraints, supported baseline grouping, wrapped stretch measurement and scroll origin corrections. Reuse the existing shared static fallback and remove duplicate grid coordinate projection.

Validation: cargo fmt --all; cargo clippy --workspace --all-targets --all-features -- -D warnings; cargo nextest run --no-fail-fast (20284 passed, 18 skipped). The combined working tree passed these checks before this logical split. Frozen Release and focused browser/WPT validation also passed; final full WPT is running.

Original-commit: fe7aa2fe70
2026-10-21 17:55:02 +08:00
ldm0 87e044db18 fix(layout): preserve intrinsic width keywords across inline formatting roles
Subtract horizontal margins for explicit inline-block fit-content widths and carry float min/max-content constraints across the IFC boundary. Cover six font-backed role/keyword combinations, including an inline break that exercises the float path.

Validation: cargo fmt --all; cargo clippy --workspace --all-targets --all-features -- -D warnings; cargo nextest run --no-fail-fast (20284 passed, 18 skipped). The combined working tree passed these checks before this logical split. Frozen Release and focused browser/WPT validation also passed; final full WPT is running.

Original-commit: 00cfb54b45
2026-10-21 17:55:02 +08:00
ldm0 a1965aa9ae fix(layout): adopt fork constraint fixes and isolated content probes
Pin published Taffy and Stylo fixes for baseline provenance, intrinsic child bounds, grid/OOF ratio constraints, writing modes, selector matching, stylesheet nesting and calc type dependencies. Treat IFC ContentProbe inputs as intrinsic contribution measurements.

Validation: cargo fmt --all; cargo clippy --workspace --all-targets --all-features -- -D warnings; cargo nextest run --no-fail-fast (20283 passed, 18 skipped). Release v3 and five browser regression rounds. Full WPT recorded separately.

Original-commit: b002c0e823
2026-10-21 17:55:02 +08:00
ldm0 97b297830e fix(layout): retain normal grid stretching for native form controls
Map native controls to compressible replaced leaves without the image-only replaced flag. Cover checkbox, radio and range normal alignment at 50 by 50 pixels.

Validation: cargo fmt --all; cargo clippy --workspace --all-targets --all-features -- -D warnings; cargo nextest run --no-fail-fast (20283 passed, 18 skipped). Release v3 and five browser regression rounds. Full WPT recorded separately.

Original-commit: 143e72ec4d
2026-10-21 17:55:02 +08:00
ldm0 ba803e7b90 fix(xml): report malformed attributes while preserving namespace parsing
Check strict lexical XML errors before xml5ever tree construction. Cover six malformed attribute/name forms both alone and in a valid XHTML prologue, plus distinct xml:lang/lang namespaces.

Validation: cargo fmt --all; cargo clippy --workspace --all-targets --all-features -- -D warnings; cargo nextest run --no-fail-fast (20283 passed, 18 skipped). Release v3 and five browser regression rounds. Full WPT recorded separately.

Original-commit: 0232344406
2026-10-21 17:55:02 +08:00
ldm0 6424f9e555 fix(layout): integrate ratio and orthogonal grid regression fixes
Original-commit: 81c9bd1abd
2026-10-21 17:55:02 +08:00
ldm0 a551aba5d7 fix(layout): retain grid track areas for positioned descendants
Original-commit: 5976146db3
2026-10-21 17:55:02 +08:00
ldm0 e78f5a33b2 feat(layout): update Taffy and Stylo forks with current Blitz adapters
Move Taffy to 0.15 and Stylo to 0.22 using fixed fork revisions, with the
matching stylo_taffy adapter. Upgrade cssparser and the production HTML/XML
parsers while preserving the vendored XML behavior.

Adapt sizing inputs, baselines, grid positions, overflow and out-of-flow
ownership. Preserve font-stretch CSSOM compatibility and intrinsic sizing
through nested atomic inline probes.

Validation: root cargo fmt --all; strict workspace/all-target/all-feature
Clippy; Nextest 20280 passed, 18 skipped; Release build; five browser
regression rounds; RTL and nested intrinsic Chromium geometry controls.
Full WPT Cross is recorded separately with its Cases refresh.

Original-commit: 281a920d89
2026-10-21 17:55:02 +08:00
ldm0 f2f0028d80 chore(deps): update Taffy fork after compatible upstream rebase
Replay the 43 Moli patches onto upstream 2e4dbc55 while preserving the
0.13 interfaces consumed by Moli and stylo_taffy. Include the upstream
grid loop bounds, definiteness tracking and flex wrapping fixes.

Keep the intrinsic sizing regression fixes and repair the existing RTL
scrollbar inset and wrapped-column baseline failures. Pin the published
fork at 3c19aa124ebcef6320a4e84e141be19f4af659c3.

Validation: cargo fmt --all; strict workspace Clippy; full Nextest
(20279 passed, 18 skipped, NEXTEST_TEST_THREADS=16); Release build;
Taffy native tests (5898 passed, 4 ignored); full WPT Cross plus old/new
three-round retests of all 26 worsened case statuses.

Original-commit: d95b40495e
2026-10-21 17:55:02 +08:00
ldm0 4a655435bc fix(layout): include percentage padding in flex content sizing
Resolve percentage padding against the flex containing block while measuring a content flex basis. This keeps the text content width intact before line breaking. The browser regression covers three container widths, four padding percentages and both box-sizing modes.

MOL-467: Taffy 02c4920e93348e20cb197667a366e0a15e91db39. Browser before/after probes retained.

Validation: cargo fmt --all; cargo clippy --workspace --all-targets --all-features -- -D warnings; cargo nextest run --no-fail-fast: 20279 passed,18 skipped.

Original-commit: 8ab5696ccc
2026-10-21 17:55:02 +08:00
ldm0 ceda61205a fix(layout): apply inline-block intrinsic maximum widths
Constrain auto-width inline-blocks by max-width:min-content while preserving intrinsic minimums, minimum precedence and automatic growth. Pin the separate Taffy sizing fixes, including the block-root auto-fill control.

MOL-466: Taffy a34a7a82e5144b311b2fcb34feeb8412db9d0117. Browser before/after probes retained.

Validation: cargo fmt --all; cargo clippy --workspace --all-targets --all-features -- -D warnings; cargo nextest run --no-fail-fast: 20278 passed,18 skipped.

Original-commit: d4016168b2
2026-10-21 17:55:02 +08:00
ldm0 44fe2b6ddc fix(layout): honor intrinsic minima in grid tracks and rows
Pin the separate Taffy71617899 and4a618c7b fixes: resolve authored intrinsic item minima for auto-track contributions and before fixing the width used to measure row height. A smaller preferred width must not hide the minimum in either path.

MOL-465: browser regression covers min-content/max-content with auto,0px and50px preferred widths, track positions and row heights. The two pre-fix failures were next-column x40 instead of60 and row height60 instead of20. The Webfont grid nontermination control still completes.

cargo fmt --all; cargo clippy --workspace --all-targets --all-features -- -D warnings; cargo nextest run --no-fail-fast:20277 passed,18 skipped. Initial partial-fix failure logs retained.

Original-commit: 3b602b4240
2026-10-21 17:55:02 +08:00
ldm0 64a6498627 fix(layout): terminate fractional grid track growth
Pin Taffy5453d6cd, whose remaining-growth subtraction uses the same rounded base-plus-increase value as its growability predicate. This prevents a zero-growth iteration from repeating forever.

MOL-464: the new bounded CLI test fails after10s before the pin and passes afterward. The nested grid, percentage margin and Webfont reproducer also completes in0.17s; this trigger hangs in both1.1.17 and1.1.18.

cargo fmt --all; cargo clippy --workspace --all-targets --all-features -- -D warnings; cargo nextest run --no-fail-fast: 20276 passed,18 skipped. A disk-full compilation attempt is retained separately; the successful full retry passes.

Original-commit: 163941940d
2026-10-21 17:55:02 +08:00
ldm0 a68289d630 fix(cdp-smoke): wait for worker readiness before evaluating globals 2026-10-21 17:12:12 +08:00
ldm0 5dc79f3363 fix(csp): discard invalid values without reviving duplicate directives
Ignore directives containing non-whitespace controls, DEL or non-ASCII
characters. Reserve the first directive name even when its value is ignored,
so later duplicates cannot replace it or bypass a valid default-src fallback.

Cover header/meta parsing, independent directives, reporting, Trusted Types
sinks and worker string/Wasm compilation. Keep source-token boundary checks
separate from invalid directive handling.
2026-10-21 16:53:15 +08:00
ldm0 330a1bc99c fix(cssom): serialize computed background layers
Serialize computed background from the shared retained style read, using the image list to coordinate layers, repeating or truncating other component lists, and emitting color only in the final layer. Include computed initial components instead of using specified-value shorthand elision.

When Stylo cannot serialize a computed shorthand, reify the shared CSSOM result as one property-associated opaque CSSStyleValue. Preserve native realm allocation, snapshot immutability and longhand Typed OM types. Cover multiple layers, currentcolor, list coordination, private native writes and cross-realm reads.
2026-10-21 16:43:26 +08:00
ldm0 8c5ffea821 fix(xhr): encode URL queries with the owning document's charset 2026-10-21 16:41:12 +08:00
ldm0 29393a6cfb fix(dom): retain encodings in native Document state 2026-10-21 16:41:12 +08:00
ldm0 b836f5331f fix(media): honor codec color requirements in capability queries
Parse VP9 and AV1 color descriptions in the native MIME module, including BT.709 defaults and unspecified CICP fields. Report unsupported for mismatched or malformed descriptions while preserving derived dictionary conversion and snapshots.

Cover codec grammar and 1,144 query combinations, including matching configurations that must retain their existing support.
2026-10-21 16:18:51 +08:00
ldm0 1532861731 fix(media): validate container and RTP MIME configurations 2026-10-21 16:18:51 +08:00
ldm0 b9cb4d7197 fix(media): validate video options for each capability query 2026-10-21 16:18:51 +08:00