Commit Graph
1538 Commits
Author SHA1 Message Date
ldm0 d0b15328fc refactor(renderer): unify realm intrinsic interface state
Publish realm-owned interface objects only after finalization succeeds and route shared binding helpers through the canonical registry. Keep ECMAScript intrinsics separate and check native realm exposure when deserializing CryptoKey objects.
2026-10-04 21:41:49 +08:00
ldm0 695103135a fix(renderer): propagate intrinsic finalization failures 2026-10-04 21:31:11 +08:00
ldm0 1d6164cfe4 fix(renderer): synchronize intrinsic interface registration 2026-10-04 21:31:11 +08:00
ldm0 9384cf96c5 fix(renderer): enter committed typestate before source teardown
Validate the main WindowProxy and script environment while the source stays
live, and preallocate the replacement bootstrap state. Move the guarded
entry to Committed before consuming its one-shot detachment token so a
panic cannot return a detached source through live failure handling.

Keep source retirement inside CommittedNavigationEntry, rename the
phase-one retirement entry points, and retire the lifecycle turn once.
Check replacement liveliness before consuming the committed residence.

Cover panics immediately after detachment and during source retirement for
ordinary and open-streaming Pages, including receiver release and renderer
owner reuse after the failed navigation.
2026-10-04 21:20:27 +08:00
ldm0 e42b3267b6 fix(renderer): preserve source parser until navigation commits
Keep the complete source phase-one residence and context resources intact
until navigation commit validation and WindowProxy detachment succeed.
Retire the parser, input bridge and ScriptVm synchronously after that
boundary, and defer source lifecycle termination until commit.

Cover replacement success, 204 No Content, and script-environment and
WindowProxy ownership failures after a replacement response is Prepared.
Verify failed commits preserve the source Inspector context, later body
bytes still parse, and the original Document reaches Load.
2026-10-04 19:30:41 +08:00
ldm0 f468b5066a fix(indexeddb): queue versionchange before rechecking blocked requests 2026-10-04 18:38:10 +08:00
ldm0 871a1b3411 fix(pointerevents): validate capture arguments and query pending targets 2026-10-04 18:35:41 +08:00
ldm0 683db660ae fix(renderer): allocate stream promises from realm intrinsics
Create Streams promise residences with V8 PromiseResolver so writer
ready/closed promises and pending operations do not consult a missing,
throwing or replaced public Promise constructor during bootstrap.

Consume the private resolver on first settlement to preserve
[[AlreadyResolved]] while adopting a still-pending promise. Keep delayed
read rejections on the same settlement path.

Cover allocation before interface bootstrap and writer backpressure and
releaseLock with deleted, undefined or poisoned global Promise bindings.
2026-10-04 18:23:25 +08:00
ldm0 c3faa63d88 fix(renderer): use receiver host for NamedNodeMap wrappers 2026-10-04 18:21:38 +08:00
ldm0 291a33ba9d fix(window): honor top-level CSP sandbox origins and tokens 2026-10-04 15:43:03 +08:00
ldm0 d6d96c8a55 fix(forms): resolve navigation keywords from the form owner 2026-10-04 15:37:27 +08:00
ldm0 5b7984973f fix(cdp): abort no-content navigations before document preparation 2026-10-04 15:34:09 +08:00
ldm0 163b67f36b test(wpt): support HTTPS and load-driven Window fixtures 2026-10-04 15:15:26 +08:00
ldm0 e64b28a8f8 fix(skills): remove Google fromd default websearch engines 2026-10-04 14:42:16 +08:00
ldm0 5cab5e192d test(renderer): stabilize page replacement task collision v1.1.13 2026-10-04 11:28:20 +08:00
ldm0 7106a4e4b6 fix(cdp): initialize scrollbar overrides before navigation scripts 2026-10-04 05:20:17 +08:00
ldm0 83e1878269 test(cdp): lock scrollbar visibility across CLI and emulation
Start iframe-input with --scrollbars so its nested native control checks
continue to exercise visible scrollbars. Add a default scrollbar-visibility
group covering fetch/serve defaults, boolean environment values and CLI
precedence, geometry, stable gutters, frames, PNG output and input routing.
Cover CDP toggling, navigation, target isolation, detach, resize and layout
dependencies in independent processes with explicit environments.

Validation: 43 harness unit tests passed; scrollbar-visibility (22 scenarios),
iframe-input and classic-scrollbar smoke groups all passed (3/3).
2026-10-04 05:20:17 +08:00
ldm0 390679933b feat(cli): make layout scrollbars opt-in 2026-10-04 05:20:17 +08:00
ldm0 427b2dea01 refactor(config): carry complete startup layout configuration 2026-10-04 05:20:17 +08:00
ldm0 75357ea30f refactor(layout): move scrollbar policy into layout environment 2026-10-04 05:20:17 +08:00
ldm0 85ceaa4d5c refactor(renderer): centralize layout invalidation and publication 2026-10-04 05:20:17 +08:00
ldm0 674a2fd9df refactor(renderer): unify document settings application 2026-10-04 05:20:17 +08:00
ldm0 ff70590d7f refactor(runtime): share document settings snapshots 2026-10-04 05:20:17 +08:00
ldm0 a789da8a0d feat(cdp): support Emulation.setScrollbarsHidden
Apply scrollbar hiding to the live Page before acknowledging the command, preserve the startup flag, and replay the target setting before navigation scripts. Validate the required boolean and layout mode, track per-session state, and clear overrides on detach.

Refs #1081
2026-10-04 05:20:17 +08:00
ldm0 df410aeeb7 feat(layout): add --hide-scrollbars for fetch and serve
Hide native scrollbars and automatic gutters while preserving scrolling and explicit stable gutters. Require layout mode and retain the setting across navigation, frames, and protocol sessions.

Refs #1081
2026-10-04 05:20:17 +08:00
ldm0 91bfb9f374 test(xhr): assert exact blob response header serialization 2026-10-04 04:12:34 +08:00
ldm0 5b631561a3 feat(clone): serialize native DOMRect platform values 2026-10-04 04:07:26 +08:00
ldm0 98edb0848b fix(events): retain creation state in legacy initializers 2026-10-04 04:05:56 +08:00
ldm0 2615f70a53 refactor(dom): share Node tree relation getter resolution 2026-10-04 04:01:04 +08:00
ldm0 9660301300 test(url): keep file URL spelling separate from access policy 2026-10-04 03:52:06 +08:00
ldm0 32de272640 fix(cdp): keep current renderer notifications live during navigation 2026-10-04 03:12:50 +08:00
ldm0 2ea0ffd7b2 test(fetch): verify identity encoding for range requests
Exercise Range requests through buffered, HTML and raw transports, including malformed or empty Range values, native header configuration and redirects. Inspect wire headers to ensure identity encoding is selected for Range without leaking into subsequent ordinary requests, while response decompression remains active.
2026-10-04 03:09:36 +08:00
ldm0 bb2cc3b8c3 test(fetch): cover MIME parameters in no-cors header fills 2026-10-04 03:08:45 +08:00
ldm0 933d6bdf82 test(fonts): await the FontFaceSet fixture before assertions 2026-10-04 02:38:42 +08:00
ldm0 89b5932d43 test(streams): await compression work through the page executor 2026-10-04 02:38:18 +08:00
ldm0 3569ba3276 test(encoding): await child script message delivery 2026-10-04 02:37:51 +08:00
ldm0 059cc9d04e test(cdp): wait for fulfilled Fetch body consumption 2026-10-04 02:37:24 +08:00
ldm0 73e2906335 refactor(forms): share input defaultValue reflection helpers 2026-10-04 02:37:08 +08:00
ldm0 b8e7b6b27b refactor(webidl): share DOMString conversion through UTF-16 2026-10-04 02:36:29 +08:00
ldm0 60a001f9c2 refactor(indexeddb): deduplicate cursor entries in place 2026-10-04 02:36:07 +08:00
ldm0 ab4c396280 chore(release): update version to 1.1.13 2026-10-04 02:34:46 +08:00
ldm0 6ecf3f0c03 fix(css): parse stylesheet preload type hints as MIME values 2026-10-04 02:33:39 +08:00
ldm0 b1fcb49648 fix(indexeddb): treat boxed primitives as getAll options 2026-10-04 02:32:58 +08:00
ldm0 ae8c16eaaa fix(fetch): create buffered response clones in the receiver realm 2026-10-04 02:32:31 +08:00
ldm0 13cb11c4ac fix(modules): classify caught native TypeError constructors 2026-10-04 02:31:50 +08:00
ldm0 28ecf45c9b fix(webidl): preserve low bits in unsigned 64-bit wrapping 2026-10-04 02:30:29 +08:00
ldm0 4ce0b82a45 chore(wpt): refresh cases after retired Window query fix 2026-10-04 01:38:57 +08:00
ldm0 066501d2ac fix(window): isolate retired Window named and indexed queries 2026-10-04 01:38:57 +08:00
ldm0 5fee158929 chore(wpt): refresh cases after callback realm fix
Run the 451451cec release against WPT db95fafd1f with the full all profile,
CDP mode, and 50 workers. Record all 13,631 executed cases: 9,583 passed,
3,724 failed, 259 timed out, 10 errored, 1 crashed, and 54 stalled.

Both Promise and both Wasm entry-settings regressions now pass in the full
run and in all five focused release rounds. Keep the other original full-run
statuses, including errors and intermittent failures; diagnostic comparisons
with main and the previous release do not replace snapshot results.

Audit confirms every raw result agrees with the engine report, matrix, and
eight sorted, disjoint status lists, with no missing or unexecuted cases.
2026-10-04 01:38:57 +08:00
ldm0 29681456e9 fix(callbacks): preserve live realms during popup event dispatch
A popup-scoped identity lookup can miss a load callback created in its
parent or another live iframe. The retirement guard then rejects the
callback solely because its context has a Window token, causing the
Promise and Wasm entry-settings WPTs to time out.

Resolve the callback creation context's concrete registration when no
scoped identity was provided, then apply the existing currentness check.
Unregistered Window realms remain retired and captured identities retain
their original authority.

Add a Page-task regression that opens a popup through an iframe and checks
parent and live-child callbacks, their receivers and event targets. A
callback retained from a removed/reinserted iframe Window must not run.

Validation: cargo fmt --all; workspace/all-targets/all-features Clippy with
-D warnings; cargo nextest run --no-fail-fast with retries disabled
(19,166 passed, 16 skipped). The new regression passes 20 stress iterations;
the 60 popup and callback-retirement tests pass all three stress rounds.
2026-10-04 01:38:57 +08:00