Commit Graph
2106 Commits
Author SHA1 Message Date
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
ldm0 de489c65cb fix(media): honor capability dictionary inheritance and defaults 2026-10-21 16:18:51 +08:00
ldm0 027a913d93 fix(media): derive capability configuration snapshots 2026-10-21 16:18:51 +08:00
ldm0 c77d9a2918 fix(webrtc): back event dictionaries with native snapshots
Freezing an ICE or data-channel event must not freeze its mutable Event state. Move all three RTC event constructors onto the shared private backing and wrapper path, preventing initEvent from trying to redefine frozen public properties.

Derive argument arity, inherited EventInit conversion and interface validation, then initialize payload slots from the same dictionary schema. Preserve native payload identity, nullable URLs and original exceptions. Cover frozen dispatch and registered native Proxy payloads without admitting author or revoked Proxies.
2026-10-21 16:17:16 +08:00
ldm0 3bb3c4881f feat(images): support SVG decode with native receiver semantics
Reuse the existing image decode request and microtask pipeline for SVG images.
Validate HTML and SVG receivers through generated native brands and convert
binding failures to rejected Promises in the callee realm. Keep successful
decode Promises and EncodingError values in the backing receiver relevant realm,
including registered native proxies and images adopted across documents.

Cover href precedence and cancellation, cross-realm network settlement, forged
and proxy receivers, intrinsic constructor replacement, and native proxy realms.
Exercise the existing owner/relevant-realm assertions using real adoption.
2026-10-21 16:16:50 +08:00
ldm0 bf668b7dea perf(startup): disable AWS-LC CPU jitter entropy 2026-10-21 16:16:20 +08:00
ldm0 14cf5e31ff fix(frontend-smoke): honor observation timeout during CDP setup 2026-10-21 15:40:58 +08:00
ldm0 0b4ef75165 fix(cdp-smoke): observe browser exit independently of output EOF 2026-10-21 15:40:58 +08:00
ldm0 a86afb442e test(document): cover child input-stream readiness 2026-10-21 06:11:29 +08:00
ldm0 86a078d18d fix(intersection-observer): convert options before validating thresholds
Convert option members in WebIDL order, including root brand validation and
the threshold double-or-sequence union. Propagate conversion failures before
constructor margin/range validation and retain duplicate thresholds when sorting.

Cover iterable discrimination, getter order, exception precedence, and later
getter mutations; update the existing duplicate-threshold expectations.
2026-10-21 06:06:06 +08:00
ldm0 ce0781f2ad test(cdp): accept optional Chromium reset retry 2026-10-21 05:31:10 +08:00
ldm0 d4b0ad257d chore(release): update version to 1.1.19 2026-10-21 04:28:56 +08:00
ldm0 e770d5140f fix(forms): enforce sandbox checks for ancestor navigation 2026-10-21 02:21:45 +08:00
ldm0 f3a4e64995 fix(print): isolate PDF style and font environments from screen state 2026-10-21 02:18:52 +08:00
ldm0 41e608f91c fix(renderer): load and retire web fonts by child Document owner 2026-10-21 02:12:39 +08:00
ldm0 b8ca3b075c test(benchmark): verify consumed-fragment styles and retention 2026-10-21 01:27:34 +08:00
ldm0 c55bd183fe refactor(cdp): dispatch browser close through normal frontend routing
Send Browser.close through the ordinary command channel and Router session
validation before handling it in the protocol actor. Route its response through
the existing pending-command table and confirm writer flush before submitting
InstanceCommand::Shutdown, without scheduling renderer work.

Remove the socket shortcut, CdpFrontendSessionLookup, and shared Arc/Weak routing
state. Inject one instance control handle into both server admission and owner
lifecycle, keeping native shutdown on the same state.

Cover response ID/session restoration and route consumption; retain failed
flush, invalid/foreign session, pending-promise, and instance cleanup coverage.
2026-10-20 20:47:16 +08:00
ldm0 9464659788 refactor(server): route browser shutdown through instance control
Expose protocol-independent InstanceCommand and BrowserInstanceControl with a
native serve_with_control entry. Keep shutdown coordination in the server and
CDP session validation and response flush in a dedicated adapter, bypassing
renderer work without creating another actor or shutdown state.

Parse each CDP envelope once and check live frontend-owned session routes
through a weak registry view. Match Chromium Browser.close on browser, page,
tab, and worker sessions; ignore params and reject null or foreign session IDs.
Update optional-session test requests to omit absent routes.

Add native and pending-promise lifecycle regressions and cross-engine smoke
coverage for acknowledgment ordering, natural process exit, and isolation.
2026-10-20 20:47:16 +08:00
BibekPathak 6ce547ed8e test(cdp): verify Browser.close process exit and profile reopen 2026-10-20 20:47:16 +08:00
neng c99d2914c7 Support instance-scoped CDP Browser.close shutdown 2026-10-20 20:34:45 +08:00
ldm0 f702d9a65d fix(cdp-smoke): retain debugger-wait load events during Runtime.enable 2026-10-20 17:25:49 +08:00
ldm0 1169df3230 test(svg): cover native scalar factory values and realms 2026-10-20 12:30:18 +08:00
ldm0 7ee8c887da test(cli): allow shared readiness budget to expire in earlier phases 2026-10-20 12:29:47 +08:00