Commit Graph
1530 Commits
Author SHA1 Message Date
ldm0 ade4de2f5f 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 16:00:56 +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
ldm0 452d385891 test(wpt): refresh cases after rebasing global scope fixes
Run the unfiltered all profile with release Moli 1.1.12 built from
0c5f83969f after rebasing onto main
8f7598a30f, using WPT
db95fafd1fcef8428805e41eb5705d444e8c67ce and 50 CDP workers.

Complete all 13,631 cases: 9,578 pass, 3,730 fail, 261 timeout, 9 error,
one crash and 52 harness-stalled. Against main's lists, 11 cases gain pass
and 16 lose pass, for a net decrease of five. Preserve the raw full-run
outcomes.

Validate the unchanged case set and exactly one recorded result per case.
Raw live results, engine output, matrix and all eight sorted, disjoint,
exhaustive status lists agree. No setup errors, missing cases, unknown
statuses or unexecuted recovery placeholders. git diff --check passes.

Check all 16 pass losses against the same release main source and WPT.
Four Promise/Wasm entry tests reproduce a source regression: HEAD times
out in 8/8 paired trials while main passes 8/8. The callback retirement
guard added in 77d2700c6 is the cause; a diagnostic-only fallback restores
all four in 3/3 trials. Keep these failures in the raw timeout list.

Nine losses also fail on main; two original failures remain unreproduced.
rel-attribute-clearing remains suspicious (HEAD 3/28 failures, main 0/28).
Filtered validation does not alter this full-run snapshot.
2026-10-04 01:38:57 +08:00
ldm0 8fba73c587 refactor(window): encapsulate document wrapper binding
Keep the private Document wrapper slot and Window.document getter together in
the Window binding layer. Bind environment settings and the wrapper through
one guarded entry point, leaving WindowEnvironmentSettings responsible for
native document identity, origin and base URL resolution.

Validation: cargo fmt --all; cargo clippy --workspace --all-targets --all-features
-- -D warnings; cargo nextest run --no-fail-fast.
2026-10-04 01:38:57 +08:00
ldm0 0c89c93abd fix(window): retain iframe document identity after removal
Resolve Window.document through the receiver realm's retained settings and
keep its original Document wrapper in a private V8 slot after cache retirement.
Use the same getter for the LegacyUnforgeable bootstrap descriptor.

Cover cleanup, reinsertion, borrowed getters and navigation, including retained
Request regressions for about:blank, srcdoc and HTTP frames.

Validation: cargo fmt --all; cargo clippy --workspace --all-targets --all-features
-- -D warnings; cargo nextest run --no-fail-fast (19,146 passed, 16 skipped).
2026-10-04 01:38:57 +08:00
ldm0 3068890346 fix(request): retain iframe settings after removal
Keep each child realm's associated native Document and captured origin after
execution authority retires. Saved Request constructors continue reading live
base changes on that Document and cannot resolve against a reinserted iframe.

Keep removed Window globals attached, detach only for same-frame proxy reuse,
and explicitly reject retired Window callback realms. Preserve initial empty
Document bootstrap resolution and use intrinsic abort constructors internally.

Cover about:blank, srcdoc, HTTP, realm cleanup, base mutation, reinsertion,
referrers and dependent signals. Existing MessagePort retirement and nested
blob iframe constructor tests remain unchanged and pass.

Validation: cargo fmt --all; workspace Clippy with all targets/features and
-D warnings; full nextest (19,144 passed, 16 configured skips, no retries).
2026-10-04 01:38:57 +08:00
ldm0 dbdcbec7ba fix(timers): enforce stored deadlines
A one-millisecond timer could become runnable immediately after registration.
Remove the early dispatch allowance from the shared scheduler so registered
and rescheduled timers become runnable only at or after their actual
monotonic deadline. All readiness queries use the same rule.

Regression coverage checks registration-time and pre-deadline queries,
exact-deadline dispatch through filtered and unfiltered paths, and interval
rescheduling without advancing the new deadline.
2026-10-04 01:38:57 +08:00
ldm0 2fc3c71030 fix(idle): align deadlines with the DOM clock
Capture each IdleDeadline's native performance time origin and subtract
coarsened timestamps in ticks. This keeps timeRemaining on the same 100us
timeline as performance.now, including when the method is borrowed from
another realm, and avoids exposing floating-point sub-tick residuals.

The recursive idle WPT regression is reproducible at 8a353fa2a: its release
parent passes 20/20 while that commit fails 20/20. That commit changed the
DOM clock from 5us to 100us without updating the raw idle deadline clock.

Add deterministic clock-bucket and expiration checks plus a native API
resolution test that fails before this fix. Clock-only release stress passes
97/100; the remaining failures expose early idle timer admission, which is
handled separately.

Validation: cargo fmt --all; cargo clippy --workspace --all-targets
--all-features -- -D warnings; cargo nextest run --no-fail-fast
(19139 passed, 16 skipped).
2026-10-04 01:38:57 +08:00
ldm0 e442d0eee2 refactor(worker): split global scope by responsibility 2026-10-04 01:38:57 +08:00
ldm0 82540f8d5c test(fetch): cover BOM decoding across body consumers and realms 2026-10-04 00:48:02 +08:00