Commit Graph
1319 Commits
Author SHA1 Message Date
ldm0 ca685d0644 fix(wpt): serve form echo bodies as hexadecimal bytes
Carry the remaining HTTP fixture and its regression tests from wpt-misc-fix at 3cd3c8968b.
2026-09-29 12:38:29 +08:00
ldm0 28ff884e3d fix(wpt): serve worker URL encoding fixtures
Carry the remaining HTTP fixture and its regression tests from wpt-misc-fix at 3cd3c8968b.
2026-09-29 12:38:29 +08:00
ldm0 20278fed5a fix(wpt): inspect Fetch request headers across HTTP methods
Bring the remaining Fetch header fixtures from wpt-misc-fix, including early responses to unread uploads, CORS metadata, response status pipes, and handler discovery. Consolidates d210a13a5d and 8e2764e6cd with their current regression tests.
2026-09-29 12:36:47 +08:00
ldm0 3cb5a43709 fix(wpt): serve the preload request counter fixture
Implement preload/resources/preload-count.py and admit its exact references
during case discovery. Resource requests increment a shared counter and fail
with 404; result requests return JavaScript and consume the count. This lets
the unsupported-type WPT verify that no preload request was sent.

Validation: 432 Python WPT tests across 31 modules, run with 32 workers.
Moli and Chromium both pass the affected WPT and the two related MIME cases
(47 subtests per engine). Only Python and the WPT pass ledger changed.

(cherry picked from commit b8a3d0497d3575200ce28896c8bcde7f8c4719c4)
2026-09-29 12:34:51 +08:00
ldm0 911e190b28 fix(wpt): model Fetch redirect fixtures
Serve Fetch redirect.py with upstream Origin and credentials responses,
preflight handling, query inheritance, counters, delays and form status codes.
Recognize its relative, absolute and RESOURCES_DIR references during discovery.

Cover the HTTP behavior and discovery with regressions. Verify the fixture
against upstream wptserve, including byte parsing and unread request bodies.

(cherry picked from commit 813bb1b3ecb4e55c5a0167df22494ca5269b1ef1)
2026-09-29 12:34:19 +08:00
ldm0 23b051a2e1 fix(wpt): serve XHR request URI and redirect fixtures
Implement requri.py and redirect.py with their upstream query, status,
Location, delay, and method behavior. Preserve raw request URIs and allow
redirect responses before the upload completes.

Recognize supported XHR references during case selection and cover the
fixtures through real HTTP requests.

Validation: all 510 benchmark unit tests pass. With the unchanged Moli
binary, 17 WPT cases improve from 6 to 9 passes and 72 to 79 passing
subtests; both redirected Worker harnesses now execute their assertions.

(cherry picked from commit 456c59b63e4ef997d35dbf984b2406a6c3c75926)
2026-09-29 12:33:26 +08:00
ldm0 46b6c09a37 fix(wpt): serve iframe parentage stash results
Support the iframe parentage stash fixture with write-once POST and read-once retrieval, preserving UUID/path namespaces and the difference between an absent value and empty bytes. Reuse the Python-handler response path for pipe processing. Tests cover requests, methods, body framing and case selection.

Validation: all branch checks passed. Ran 333 tests in 135.692s; OK
(cherry picked from commit 39dc2130dc)
2026-09-29 12:28:41 +08:00
ldm0 155a7fe10e fix(wpt): serve charset inheritance handler responses
Serve the bogus HTTP charset fixtures with their original bytes and optional valid meta charset. Match upstream response behavior for HEAD, extension methods and response-pipe bypass. Include exact reference selection and byte-level response tests.

Validation: all branch checks passed. Ran 325 tests in 122.514s; OK
(cherry picked from commit 9827403ad3)
2026-09-29 12:27:55 +08:00
ldm0 00ff74e27b fix(wpt): serve raw Content-Type response fixtures
Serve the WPT content-type fixture as its original raw HTTP response, preserving duplicate, empty and malformed Content-Type fields and response bytes. Support standard and extension methods without consuming irrelevant uploads. Tests cover wire output, HEAD, pipelines and exact case selection.

Validation: all branch checks passed. Ran 329 tests in 129.466s; OK
(cherry picked from commit 252861d9c8)
2026-09-29 12:27:34 +08:00
ldm0 938fda3dda fix(wpt): validate form submission fixture bodies
Serve the form-submission body checker for GET, HEAD and POST. Preserve its exact URL-encoded and plain-text checks and MIME-aware multipart field parsing, including duplicate fields, file parts and transfer-encoding boundaries.

(cherry picked from commit 83c8955175)
2026-09-29 12:27:06 +08:00
ldm0 e79d0b605d fix(wpt): serve Fetch preflight state fixtures
Serve Fetch preflight and stash cleanup endpoints with method/header validation and shared request state. Preserve repeated query and origin values, exact resource namespaces and immediate responses for unused uploads.

(cherry picked from commit 807abbe05b)
2026-09-29 12:26:40 +08:00
ldm0 cd32d04486 fix(wpt): serve service worker import and update fixtures
Model service worker script redirects, versioned imports and update response sequences, including file-based and installation updates. Preserve request methods, cache metadata, raw script bytes and per-resource state shared across fixture origins.

(cherry picked from commit 5d0ddf013b)
2026-09-29 12:26:12 +08:00
ldm0 8180e58bab fix(wpt): serve service worker registration error fixtures
Consolidate #621 with its fixture-resource initialization correction. Preserve remote-context handler selection from main.
2026-09-29 12:25:23 +08:00
ldm0 a7df4ffe27 fix(wpt): serve XHR response header fixtures
Model xhr/resources/headers.py with its duplicate, empty, cookie and non-ASCII response headers. Include HEAD behavior and precise fixture discovery regression coverage.

(cherry picked from commit 8557f41b0c)
2026-09-29 12:25:01 +08:00
ldm0 d0ae4d2d74 fix(wpt): serve XHR PUT and wildcard preflight fixtures
Consolidate #622, including its fixture-resource test correction, alongside the XHR network-error handlers.
2026-09-29 12:24:44 +08:00
ldm0 120b4aed16 fix(wpt): model XHR network error fixtures
Serve malformed chunk framing and the upstream infinite redirect loop instead of Python source. Preserve raw partial body delivery, origin and query parameters, HEAD semantics, and exact fixture discovery.

Source: 0de7826105
(cherry picked from commit 0f4acf2725)
2026-09-29 12:23:49 +08:00
ldm0 63812b80f1 fix(wpt): keep loopback host templates tied to the primary domain
Consolidate #552 and #938 on top of the IDNA and nested-domain support already in main. Preserve the requesting host for location templates and use web-platform.localhost in the cross-engine runner.
2026-09-29 12:23:49 +08:00
ldm0 d5d16e6090 fix(wpt): parse fixture response pipes like wptserve
Tokenize pipe commands with wptserve escape, argument, and repeated-query rules. Return HTTP errors for malformed pipes and preserve ordered header operations without response header injection.

Source: 232701464d
(cherry picked from commit 90258a7da8)
2026-09-29 12:22:44 +08:00
ldm0 da07e9723c fix(trusted-types): report eval violations in report-only mode
Apply Trusted Types conversion and violation reporting to report-only eval and Function sinks while allowing unconverted sources when enforcement is absent. Preserve default-policy exceptions and the existing rejection of transformed code-generation sources. Includes report-only execution and queued violation regressions.

Validation: all branch checks passed. Summary [ 132.995s] 18922 tests run: 18922 passed (9 slow), 16 skipped
2026-09-29 12:16:49 +08:00
ldm0 20746549c8 fix(wpt): expand IDNA and nested host templates
Expand WPT domain and host templates for configured Unicode labels, nested subdomains and alternate hosts using IDNA output. Leave unknown template keys and non-template response bytes unchanged. Tests exercise response bodies, headers and one-pass request substitutions.

Validation: all branch checks passed. Ran 324 tests in 125.691s; OK
2026-09-29 12:05:40 +08:00
ldm0 6108e3eda5 fix(wpt): support remote context executors and dispatcher queues
Support remote-context executor pages and dispatcher queues, including atomic FIFO messages, request-header forwarding, CORS and response pipes. The branch includes the minimal shared response/body helpers it needs and does not depend on the iframe-stash branch. Tests cover wire behavior, concurrent queue operations and case selection.

Validation: all branch checks passed. Ran 336 tests in 134.129s; OK
2026-09-29 11:23:31 +08:00
lanyue-llk 468729e7de fix(forms): preserve live and detached named property semantics 2026-09-29 07:54:26 +08:00
ldm0 3c7557ee2d feat(xpath): expose compiled expressions with context document evaluation
Expose XPathExpression and implement Document/XPathEvaluator.createExpression with a retained native XPath AST. Compilation resolves namespaces once; repeated evaluation reads the current context document, including detached and cross-realm documents.

Share context-document evaluation with Document.evaluate and invalidate detached-document iterators after native mutations. Regression coverage checks receiver/argument ordering, namespace resolution, document mutations, repeated evaluation, garbage collection, and isolate teardown.

Validation: fmt, strict workspace clippy, full nextest. Summary [ 104.560s] 18907 tests run: 18907 passed (9 slow), 16 skipped
2026-09-29 07:31:28 +08:00
ldm0 a553acc7e4 feat(window): expose legacy navigator alias and External objects
Expose clientInformation as a replaceable alias of the associated Navigator, plus a per-Window External object with the legacy no-op methods. Retained getters use native associations after public properties are shadowed.

Regression coverage checks top-level windows, iframe realms, lightweight popups, detachment, object identity, property descriptors, native receiver brands, and replaceable properties.

Validation: fmt, strict workspace clippy, full nextest. Summary [ 105.145s] 18906 tests run: 18906 passed (9 slow), 16 skipped
2026-09-29 07:27:06 +08:00
ldm0 826c8e3957 feat(events): implement animation transition and blob payloads
Implement AnimationEvent, TransitionEvent, and BlobEvent constructors and their read-only payload attributes using native Event state and shared Web IDL receiver validation. Preserve dictionary conversion order, DOMString UTF-16 code units, finite-double validation, and the required native Blob member.

Regression coverage checks descriptors, payload values, dispatch, subclassing, cross-realm constructors/getters, invalid receivers, and conversion exceptions.

Validation: fmt, strict workspace clippy, full nextest. Summary [ 144.022s] 18905 tests run: 18905 passed (9 slow, 4 flaky), 16 skipped
2026-09-29 07:26:29 +08:00
ldm0 0c33cce924 feat(cssom): expose native starting-style grouping rules
Expose CSSStartingStyleRule as a native CSSGroupingRule and preserve its child rules through insertion, deletion, and subtree detachment. Grouping accessors and methods use the existing native receiver checks.

Regression coverage checks grouping-rule identity, retained detached descendants, invalid receivers, and constructor lookup.

Validation: fmt, strict workspace clippy, full nextest. Summary [ 103.953s] 18906 tests run: 18906 passed (9 slow), 16 skipped
2026-09-29 07:25:56 +08:00
ldm0 f06370a4b7 feat(cssom): expose native font palette value rules
Expose CSSFontPaletteValuesRule with native parsing and read-only name, fontFamily, basePalette, and overrideColors descriptors. Attached rules read Stylo state; removed rules retain their descriptors through the existing native snapshot parser.

Regression coverage checks valid/invalid insertion, serialization, rule removal, native receiver brands, cross-realm access, and intrinsic constructor lookup.

Validation: fmt, strict workspace clippy, full nextest. Summary [ 104.120s] 18906 tests run: 18906 passed (9 slow), 16 skipped
2026-09-29 07:25:05 +08:00
ldm0 646c4a0690 fix(cssom): validate font feature rule and map receivers
Enable the shared native-brand receiver checks on CSSFontFeatureValuesRule attributes and CSSFontFeatureValuesMap operations. Invalid receivers now throw the callee realm TypeError before argument conversion.

Regression coverage includes genuine cross-realm objects, forged and author/revoked Proxy receivers, conversion ordering, retained rules/maps after removal, and native objects with changed JavaScript prototypes.

Validation: fmt, strict workspace clippy, full nextest. Summary [ 107.439s] 18906 tests run: 18906 passed (9 slow), 16 skipped
2026-09-29 07:23:34 +08:00
ldm0 3e2b9d09a4 ci: remove explicit Nextest job timeout 2026-09-29 06:08:43 +08:00
lanyue-llk 0da1cdc82d test(worker): bound slow XHR fixture shutdown 2026-09-29 06:08:43 +08:00
lanyue-llk 0bc7e0ba6d fix(ci): bound Nextest job duration 2026-09-29 06:08:43 +08:00
lanyue-llk fab8b791ae fix(ci): preserve closed PR cancellation command in YAML 2026-09-29 06:08:43 +08:00
lanyue-llk 08ab072a3b fix(reliability): harden diagnostics and test infrastructure 2026-09-29 06:08:43 +08:00
ldm0 c577f54e32 fix(html): reflect null body colors as empty strings 2026-09-29 04:53:15 +08:00
ldm0 82e4533ae1 fix(wpt): honor common redirect CORS opt-in
Require enable-cors and a nonempty Origin before exposing CORS response headers from common/redirect.py. Preserve the first status and Location values, handle extension methods, and respond without waiting for unused uploads or adding a Content-Length header.

Validation: 580 Python tests passed with 32 workers; 1296 HTTP responses matched official wptserve for status, body, and 15 response fields. New regression tests fail on the unmodified main baseline.

Source-commit: 99b528aece
2026-09-29 03:16:12 +08:00
ldm0 4424bc245f fix(fetch): reuse MIME extraction for body Blob results 2026-09-29 03:15:11 +08:00
ldm0 b406682586 refactor(fetch): centralize referrer policy parsing 2026-09-29 03:11:09 +08:00
ldm0 6e82924b02 fix(file-api): use the shared illegal FileList constructor 2026-09-29 03:09:34 +08:00
ldm0 91a4480b8a fix(protocol): retain navigation ownership during response body reads
Keep request identity and cancellation in Fetch while read tasks exclusively own response data. Match completions to the registered read instead of reinserting transfers or replying to navigations from I/O completion.

Retire superseded reads immediately, drain reads on Fetch disable, and preserve typed read errors. Cover delayed successes, failures, request reuse, cancellation, and debugger-paused supersession.
2026-09-29 02:50:43 +08:00
ldm0 b406d462a5 test(network): activate blocked URL policy in parser script fixture
Enable Network before setting blocked URLs so the parser script is intercepted instead of depending on an external DNS or request failure. Wait through the scheduler and assert the exact script request fails with ERR_BLOCKED_BY_CLIENT while subsequent parsing continues.

An earlier full-suite run exposed the timeout. Validation after the fix: 20 exact-test stress iterations and three iterations of the 20-test blocked_urls module, all passing with flaky results treated as failures; cargo fmt --all; full workspace all-target all-feature Clippy with -D warnings; cargo nextest run --no-fail-fast (18833 passed, 16 skipped).
2026-09-29 02:36:54 +08:00
ldm0 cccf567b5b perf(css): defer font projections until collections are exposed
Carry owner refresh intent through CSS synchronization and prepare font projections only after finding an existing FontFaceSet in its creation realm. Native CSS updates continue normally and held collections update without rereading document.fonts.

A test-only counter verifies 64 unobserved stylesheet mutations prepare no font projections, first observation prepares current state once, and later mutations and removals update held collections.

Validation: cargo fmt --all; cargo clippy --workspace --all-targets --all-features -- -D warnings; cargo nextest run --no-fail-fast (18833 passed, 16 skipped on the final change set).
2026-09-29 02:36:54 +08:00
ldm0 3289d5b4c3 fix(scheduler): let replacement navigation pass load-blocked work
Centralize navigation dependency decisions for readiness probing and snapshot draining. Replacement actions can reach the owner that cancels the pending request even when earlier observations wait for that load, while exact owner authorization remains mandatory.

Keep retirement admission policy beside publication ownership. Extend coverage for stale owners, cancellation, reused frontend ids, duplicate terminals, and late results without reviving retired notifications or remote objects. The new queue regression fails before the scheduler fix.

Validation: cargo fmt --all; cargo clippy --workspace --all-targets --all-features -- -D warnings; cargo nextest run --no-fail-fast (18833 passed, 16 skipped on the final change set).
2026-09-29 02:36:54 +08:00
ldm0 7b42fa6440 perf(layout): share source lookup within geometry batches
Build an operation-local source lookup for batches of rectangle queries and use it in the renderer Range path. Keep tiny batches on direct lookup and retain renderer-specific metric and viewport handling.

Compare batch results for missing sources, display contents, inline continuations, and text ranges. A 516-query fixture reduces box visits from 33024 to 64 without retaining an index.

Validation: cargo fmt --all; cargo clippy --workspace --all-targets --all-features -- -D warnings; cargo nextest run --no-fail-fast (18833 passed, 16 skipped on the final change set).
2026-09-29 02:36:54 +08:00
ldm0 bc25227a5c perf(events): reuse realm-local field getters
Cache getters on the existing Event intrinsic and select field projection callbacks once. Preserve own descriptors, optional fields, private backing, and per-realm function identity while moving generic projection policy out of Navigation.

Validation: cargo fmt --all; cargo clippy --workspace --all-targets --all-features -- -D warnings; cargo nextest run --no-fail-fast (18833 passed, 16 skipped on the final change set).
2026-09-29 02:36:54 +08:00
ldm0 120d03cfbf fix(fonts): construct CSS font faces through realm intrinsics 2026-09-29 02:36:54 +08:00
ldm0 255238328f fix(protocol): retire superseded intercepted navigations
Only the current navigation can suspend renderer output; older jobs retain cleanup ownership without blocking the active document.

Retire target-owned request, auth and response interceptions on supersession, cancel streaming transports and reject stale body-read completion. Cover paused debuggers, overlapping navigations, target isolation and once-only terminal replies.
2026-09-28 20:11:15 +08:00
ldm0 94ac141e7c refactor(protocol): simplify renderer navigation state 2026-09-28 20:11:15 +08:00
ldm0 efe54b5fa7 fix(navigation): preserve typed cancellation causes 2026-09-28 20:11:15 +08:00
ldm0 f0a82869f0 refactor(protocol): claim navigation work before reserving pages 2026-09-28 20:11:15 +08:00
ldm0 c4d0cac89a refactor(renderer): own document replacement debugger lifecycle
Move old-document debugger termination into renderer preparation scopes instead of tracking protocol navigation IDs in DevTools. Reject superseded response jobs using exact navigation tokens and cancellation authority, and retire their renderer-channel suspension independently.

Cover response interception and supersession while paused, repeated pauses, and prepare commit/cancellation/drop cleanup. Verified cargo fmt --all, workspace all-targets all-features clippy with warnings denied, 18444 nextest tests, and 20 stress iterations of 127 focused tests.
2026-09-28 20:11:15 +08:00