Commit Graph
218 Commits
Author SHA1 Message Date
ldm0 78ba91b71a fix(navigation): replace Location entries until document loading completes
Track complete loading separately from readyState for main and child documents, retaining the state through document.open(). Apply before-load replacement to Location assignments with the transient user activation exception, and settle inherited main load completion after a load-callback rewrite.

Keep Window.open on the generic navigation path so its history behavior remains independent of the Location API.

Cover real child history length and entry indices across parser, DOMContentLoaded, load, pageshow, and post-load document.open(), plus main navigation event classification and activation. Update the measured Location WPT results.
2026-11-22 02:01:49 +08:00
ldm0 c51c3398d8 fix(script): keep parser async work runnable after EOF
Async scripts still fetching at parser EOF previously entered a queue
behind DOMContentLoaded, allowing a slow defer script to block a ready
async script or its error event. Transfer remaining async work to the
exact Document runtime producer and publish each task when its source
completes, retaining its load-delay lease.

Preserve observed async completion order across parser handoff. Add gated
success, failure, and out-of-order completion tests, and update the WPT
ledger for execution-timing/085.html.

Validation:
- cargo fmt --all
- cargo clippy --workspace --all-targets --all-features -- -D warnings
- cargo nextest run --no-fail-fast: 17,879 passed, 13 skipped
- 270 WPT cases: 257 to 258 passes, no case or subtest regressions
2026-11-22 02:01:49 +08:00
ldm0 908d6fc4bc fix(script): checkpoint microtasks during event callback cleanup
Perform HTML script cleanup between event callbacks when the execution-context stack becomes empty, retaining currentTarget, passive state, and window.event through the checkpoint. Preserve script execution scopes during exception reporting, use the same callback boundary for Worker.onerror, and guard the complete microtask checkpoint against reentrancy.

Remove deferred window.event restoration. Update callback-order assertions and asynchronous fixtures to wait for the final event they inspect, while retaining scheduler, document-owner, and follow-up checks. Add Window, child Window, and Worker coverage for nested dispatch, listener removal in microtasks, and script versus callback exceptions.

Callback exception ordering follows Web IDL cleanup before rethrow; the local Chromium probe reports the error before that checkpoint.

WPT: 3 additional passes in the script-element microtask tests; the other 492 cases retain identical statuses and subtest results. Update the corresponding passed/failed case lists.

Validation: cargo fmt --all; cargo clippy --workspace --all-targets --all-features -- -D warnings; cargo nextest run --no-fail-fast (17,843 passed, 13 skipped). Fresh CLI build SHA-256 matches the binary used for the 495-case WPT comparison.
2026-11-22 02:01:49 +08:00
ldm0 f1bf320c43 fix(script): retain child parser state during script cleanup
Run classic script microtasks before restoring currentScript or releasing child parser nesting. Defer nested checkpoints to the outer script and wait for exception reporting before running reactions.

Cover inline and external scripts, syntax and runtime errors, document.open/write insertion points, and nested execution. Record the repaired synchronous-script bailout WPT.
2026-11-22 02:01:49 +08:00
ldm0 9c89ea3514 fix(document): ignore destructive writes during module execution
Track nested ignore-destructive-writes counters per Document across module evaluation and its cleanup checkpoint. Preserve explicit input streams, cross-realm Document identity, and writes from later tasks or pending top-level await continuations.

Validate root and child module behavior with five regression tests. The 149-case dynamic-markup WPT run gains four passes with unchanged remaining outcomes; update their recorded case status. cargo fmt, workspace all-feature clippy, and all 17835 nextest tests pass.
2026-11-22 02:01:49 +08:00
ldm0 5ee1dcf193 test(wpt): mark live window index deletion passing 2026-11-22 02:01:48 +08:00
ldm0 3bb6ba556f test(wpt): mark child meta refresh referrer passing 2026-11-22 02:01:48 +08:00
ldm0 351b5198ce test(wpt): mark browsing context case passing 2026-11-22 02:01:48 +08:00
ldm0 6185ca7f9d test(wpt): refresh cross-engine case lists 2026-11-22 02:01:48 +08:00
ldm0 234cac5f29 test(wpt): refresh cross-engine case lists 2026-11-22 02:01:48 +08:00
ldm0 de6391b945 test(wpt): refresh cross-engine case lists 2026-11-22 02:01:48 +08:00
ldm0 fe966d2318 fix(blob): revoke object URLs with window realms 2026-11-22 02:01:46 +08:00
ldm0 a539a16fd1 fix(workers): enforce response CSP gates 2026-11-22 02:01:46 +08:00
ldm0 b18d3bfd96 fix(trusted-types): recognize fullscreen event handlers 2026-11-22 02:01:46 +08:00
ldm0 d7f09a8a80 fix(service-worker): align registration URL and state handling 2026-11-22 02:01:46 +08:00
ldm0 19c08d20e8 fix(images): reselect picture requests after removal 2026-11-22 02:01:46 +08:00
ldm0 f3687e780c fix(images): track current request transitions 2026-11-22 02:01:46 +08:00
ldm0 1738a3bd61 fix(fullscreen): expose unsupported request failures 2026-11-22 02:01:46 +08:00
ldm0 8db399f592 fix(domparser): align XML parse documents with HTML 2026-11-22 02:01:46 +08:00
ldm0 29d6a4ca2a fix(selectors): accept webkit compatibility pseudos 2026-11-22 02:01:46 +08:00
ldm0 bb3dd4aa8b fix(trusted-types): prepare script text before type 2026-11-22 02:01:46 +08:00
ldm0 f63d27b09c fix(trusted-types): align legacy URL sink metadata 2026-11-22 02:01:46 +08:00
ldm0 8e1080f6b4 fix(trusted-types): report eval violations in report-only mode 2026-11-22 02:01:46 +08:00
ldm0 4263305f9b fix(trusted-types): gate execCommand HTML input 2026-11-22 02:01:46 +08:00
ldm0 422202416f fix(trusted-types): expose shared attribute sink types 2026-11-22 02:01:46 +08:00
ldm0 c1b98e67e3 fix(svg): reflect animated strings through trusted types 2026-11-22 02:01:46 +08:00
ldm0 9b6d1931f4 test(wpt): record Trusted Types policy creation results 2026-11-22 02:01:46 +08:00
ldm0 275c80cb54 test(wpt): refresh trusted policy factory results 2026-11-22 02:01:46 +08:00
ldm0 3690373706 test(wpt): refresh trusted event handler result 2026-11-22 02:01:46 +08:00
ldm0 8d937f1017 fix(trusted-types): gate document write arguments 2026-11-22 02:01:46 +08:00
ldm0 bcd42f5711 fix(events): apply exact handler return cancellation 2026-11-22 02:01:46 +08:00
ldm0 26c8d58f00 fix(events): align body window event handlers 2026-11-22 02:01:46 +08:00
ldm0 09c0cf5e5f fix(trusted-types): honor Function constructor brands 2026-11-22 02:01:46 +08:00
ldm0 f8f10fd4c2 fix(dialog): implement requestClose lifecycle 2026-11-22 02:01:46 +08:00
ldm0 80a26b2a93 fix(events): align dialog and popover toggle lifecycle 2026-11-22 02:01:46 +08:00
ldm0 c75d58f9a1 fix(media): recognize picture-in-picture display mode 2026-11-22 02:01:46 +08:00
ldm0 f3168deb1e fix(forms): unify option disabledness 2026-11-22 02:01:46 +08:00
ldm0 7bc3c84372 fix(dom): implement rendered text setters 2026-11-22 02:01:46 +08:00
ldm0 55e4fd1ae8 fix(directionality): inherit CSS through slots 2026-11-22 02:01:46 +08:00
ldm0 c8d0bd8ee4 fix(forms): reset parser-associated form owners 2026-11-22 02:01:46 +08:00
ldm0 3dbf96bdfc test(wpt): refresh counter style symbol baseline 2026-11-22 02:01:46 +08:00
ldm0 ae4b0c5980 test(wpt): refresh counter style speak-as baseline 2026-11-22 02:01:46 +08:00
ldm0 09f93def9a fix(selectors): honor heading offsets and resets 2026-11-22 02:01:46 +08:00
ldm0 170190c4e0 fix(lifecycle): order defer timers before DOMContentLoaded 2026-11-22 02:01:46 +08:00
ldm0 7fe26e9676 fix(html): preserve clean input values across type changes 2026-11-22 02:01:46 +08:00
ldm0 e033040b7a refactor(css): discover and install imports from native rules 2026-11-20 01:36:29 +08:00
ldm0 77d5388dd5 test(wpt): refresh full release case lists 2026-11-20 00:37:26 +08:00
ldm0 2f48748705 test(wpt): refresh all-profile release case lists
Record the full CDP run of main at 4b42f9d3a0 against WPT db95fafd1f
with 50 workers and the existing 120-second outer deadline. The 14,065
selected cases and their execution order match the previous full run.

Results are 10,420 pass, 3,411 fail, 223 timeout, 6 error, 4
harness-stalled and 1 crash. Passes increase by 15 from the tracked
lists. The XHR Content-Type timeout passed five focused runs. The
historical HTMLAreaElement assertions and the earlier sandbox popup
failure reproduced on both release builds. Trusted Types timed out
intermittently on both. The lists record the complete run outcomes.

Release SHA256 f6fbad622ac3cadfc09d447ca36181fab133c365964f5dc391c27917870b922f
2026-11-18 22:22:33 +08:00
ldm0 24bc917b8b fix(wpt): allow Chrome test popups without user activation 2026-11-18 19:12:59 +08:00
ldm0 8dc1fe50c6 test(benchmark): add twenty AX integration scenarios
Compare real Moli and Chromium documents through cold partial, full and
query AX requests. Check role/name/URL/value/state observations against
independent expectations, complete warm-tree stability and mutation refs.

Include shadow slots, visibility/containment, native and ARIA form state,
SVG namespaces, document links, a 301-row table and 1,000 links. Keep raw
responses, timings, binary/fixture hashes and every failure in artifacts.

Release validation finds 14/20 matching cases and 16/22 matching phases.
The 24 differing fields also occur in the retained 3dabaf9942 baseline;
the benchmark deliberately fails until these AX gaps are addressed.
2026-11-18 05:29:42 +08:00