Commit Graph
22 Commits
Author SHA1 Message Date
ldm0 4edcd179ab refactor(target): remove legacy attachment workflow wrappers
Commit Browser detach and auto-attach disable synchronously, preserving event
ordering while supervising each native retirement independently. Remove the
synthetic completion objects, test-only serial runner, and obsolete recovery.

Batch script removal with SessionPageUpdates and retain the original disposal
identity for completion. Enqueue target-owned Inspector initialization without
claim/reply observers or a cancellable route. Share endpoint selection and
borrow connection keys/bindings separately from navigation restore snapshots.

Clarify session admission names and separate static policy from Page readiness
selection while retaining the admission token through synchronous redispatch.
Exercise the production Browser commit and supervisor paths in disposal tests.
2026-11-20 02:10:47 +08:00
ldm0 1a2d1015b4 fix(target): isolate native cleanup and Page subscription admission
Supervise each retired session independently so a busy Renderer cannot delay
another target's detach finalizer and successor connection. Preserve Browser
cascade publication and each session's cleanup-before-retirement ordering.

Apply Page subscriptions at command admission and defer only their initial
Document work. Resume without replaying an obsolete enable or chooser setting.
Remove the redundant cleanup owner and unreachable connection replacement.

Cover Primary lane reuse across auto-attach with a held peer, and Page
subscription changes while the initial installer remains pending.
2026-11-20 02:10:47 +08:00
ldm0 3cfec23af6 refactor(target): decouple Browser sessions from Renderer readiness
Commit Browser attachment and withdrawal independently of native Page and
Inspector initialization. Keep shared initial builds on the target and bind
queued Main/IO work to its admitted session connection and native agent.

Separate minimum Inspector connect from ordered binding replay, and publish
unobserved initialization facts without snapshots or completion fences.
Retire Browser contributions immediately and supervise cleanup using the
original native authority, including failed or replaced connections.
2026-11-20 02:10:47 +08:00
ldm0 7ca5ce7d4b refactor(types): group fetch and page types under moli-types 2026-11-15 14:41:50 +08:00
ldm0 95dbc88a4f refactor(cdp): keep event validation at build and test time 2026-11-14 00:44:58 +08:00
ldm0 59c47a2f93 fix(cdp): enforce advertised event names at frontend output 2026-11-14 00:44:58 +08:00
ldm0 f4d868c244 refactor(cdp): require typed local event construction 2026-11-14 00:44:58 +08:00
ldm0 046811f7b9 refactor(cdp): share local event names with schema generation 2026-11-14 00:44:58 +08:00
ldm0 8f139fd884 refactor(cdp): generate discovery schema at build time 2026-11-13 17:58:54 +08:00
ldm0 a788001aae perf(cdp): buffer protocol schema decoding 2026-11-13 17:58:54 +08:00
ldm0 d1473e962f build(cdp): embed protocol metadata with Brotli quality 11 2026-11-13 17:58:54 +08:00
ldm0 6fe7d26fb3 fix(protocol-server): publish complete supported CDP schemas 2026-11-13 17:58:54 +08:00
ldm0 7b73e7408e refactor(cdp): centralize initial document adoption requirements 2026-11-12 20:44:39 +08:00
ldm0 c5d91d50d0 perf(cdp): compact protocol metadata at build time
Parse the vendored schema with serde_json::Value and serialize compact JSON
in build.rs. Embed the generated bytes without request-time processing.
Verify the embedded protocol matches the complete vendored schema.

Validation on the unchanged final source tree: cargo fmt --all;
cargo clippy --workspace --all-targets --all-features -- -D warnings;
cargo nextest run --no-fail-fast (20,505 passed, 18 existing skips).
2026-10-21 23:16:23 +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
ldm0 017c53de8c build(v8): migrate Moli to V8 15.2 2026-09-03 15:17:48 +08:00
ldm0 a74431d226 fix(devtools): unify synchronous Page IO responses 2026-08-20 14:12:15 +08:00
ldm0 d28c20ef87 refactor(devtools): align inspector session routing with Chromium 2026-08-19 19:58:31 +08:00
ldm0 91bfa0b441 Remove legacy inspector command routing 2026-08-17 00:40:39 +08:00
ldm0 d0f09dbe6d fix(devtools): unify page inspector command ingress 2026-08-17 00:40:39 +08:00
ldm0 777edb9fa4 feat(cdp): support concurrent clients 2026-08-15 00:47:40 +08:00
ldm0 27b5135cb6 Public preview 2026-08-11 00:10:12 +08:00