Commit Graph
3341 Commits
Author SHA1 Message Date
ldm0 b4abe33fc8 fix(protocol): preserve output order for overlapping insertions 2026-11-12 20:44:39 +08:00
ldm0 2fac328780 fix(protocol): unblock three-stream nested insertions 2026-11-12 20:44:39 +08:00
ldm0 ebf62d93b1 fix(cdp): finish accepted browser close despite reply failure 2026-11-12 20:44:39 +08:00
ldm0 97bb57bed0 fix(downloads): progress independently of command replies 2026-11-12 20:44:39 +08:00
ldm0 12dc4ba261 fix(protocol): preserve inserted Native stream successor order 2026-11-12 20:44:39 +08:00
ldm0 accf74494a refactor(protocol): remove redundant permission turns 2026-11-12 20:44:39 +08:00
ldm0 5c7a045b1b refactor(protocol): limit response barriers to explicit Inspector messages 2026-11-12 20:44:39 +08:00
ldm0 7b73e7408e refactor(cdp): centralize initial document adoption requirements 2026-11-12 20:44:39 +08:00
ldm0 c7f75ceb7b fix(protocol): preserve native insertion order in source publications 2026-11-12 20:44:39 +08:00
ldm0 0116a9864a test(layout): cover nested positioning and frozen projection contracts 2026-11-12 20:35:12 +08:00
ldm0 7142220841 fix(layout): resolve sticky scroll-space dependencies explicitly 2026-11-12 20:35:12 +08:00
ldm0 a571d4f05b refactor(layout): separate placement rules and space composition 2026-11-12 20:35:12 +08:00
ldm0 af53efc3f8 test(protocol): synchronize timer navigation observation setup 2026-11-12 20:35:12 +08:00
ldm0 0c1b66e048 fix(layout): account for scroll offsets in sticky positioning 2026-11-12 20:35:12 +08:00
ldm0 0a0d0f0d11 refactor(paint): remove rendering work budgets 2026-11-12 20:24:33 +08:00
ldm0 130ab00aaf fix(fetch): preserve navigation interception on worker fallback 2026-11-12 20:10:31 +08:00
ldm0 03050ca66d fix(fetch): retain native service worker navigation requests 2026-11-12 20:10:31 +08:00
ldm0 e363e2d81d fix(cdp): retain protocol body projections across redirects 2026-11-12 20:10:31 +08:00
ldm0 bc153f0165 refactor(fetch): capture redirect requests at their source 2026-11-12 20:10:31 +08:00
user.email 09c3db3c5a fix(cdp): report dispatched requests across redirect hops 2026-11-12 20:10:31 +08:00
user.email e8f6242344 fix(cdp): wait for pending frontend detach before reconnect 2026-11-12 20:10:31 +08:00
ldm0 068874f363 fix(pdf): preserve printing when link deduplication hits its budget
Sweep link candidates by full target and reject impossible containment using polygon bounds. Keep the original clipped regions when optional deduplication exhausts its work budget. Cover dense HTML printing, PDF annotations, partial-work fallback, and target identity.
2026-11-12 19:34:38 +08:00
lanyue-llk f98df6ca68 fix(css): report extraFields in getComputedStyleForNode 2026-11-12 19:21:13 +08:00
ldm0 8a7907b925 fix(cookies): load export state before storage shutdown 2026-11-12 18:14:56 +08:00
ldm0 4cb73a4e0a fix(cli): make serve cookie jar output explicit 2026-11-12 18:14:56 +08:00
coolswood 0c270044a3 fix(cookies): persist serve-mode cookie files on graceful shutdown
`moli serve --cookie-file` imported the file on startup but never wrote it
back, so every cookie the session accepted — network-stack Set-Cookie
responses, CDP Network.setCookie, and document.cookie writes — was lost
when the server exited. Fetch mode already exports its cookie jar at
exit; serve now mirrors that: after ProtocolServer::serve() returns, the
storage partition's cookies are written back to every cookie-file
argument loaded from a path (literal --cookie data and stdin stay
input-only).

Export failures are logged and do not replace the serve result, matching
fetch mode's exit-time export. Signal-driven exits keep their immediate
termination contract (moli-process-signal), so the export runs on the
graceful shutdown paths — Browser.close and the instance shutdown
command.

The serve cookie-file integration tests drive a real `moli serve` over
CDP: network Set-Cookie, Network.setCookie, and document.cookie cookies
must all land in the file on graceful exit and be restored by a
restarted server.
2026-11-12 18:14:56 +08:00
lanyue-llk 7521d39219 fix(scheduler): keep source fairness runs across lifecycle turns 2026-11-12 17:58:59 +08:00
ldm0 4587468ff4 fix(websocket): use browser casing for HTTP/1.1 handshakes 2026-11-12 17:51:43 +08:00
ldm0 62a5961ee2 test(fetch): validate URL credentials at forwarding boundaries
Keep the Window fixture alive through the negative cases and assert the exact credentials error. Exercise real Worker fetch forwarding for native Request variants, including POST bodies, and reject converted URLs before networking.
2026-11-12 17:37:03 +08:00
ldm0 238b182ccb refactor(fetch): use anyhow for window fetch preparation
Replace the preparation error enum with anyhow::Result. Preserve context error messages, direct URL/WebIDL error propagation, and the existing Promise rejection path.
2026-11-12 17:37:03 +08:00
ldm0 b177447a12 fix(fetch): preserve native Request URL provenance
Extracted from development commit b0e803695e.

Adapted to the target branch APIs. Validated with cargo fmt --all, full workspace Clippy (-D warnings), and cargo nextest run --no-fail-fast before committing.
2026-11-12 17:37:03 +08:00
ldm0 f0c484b7d8 fix(indexeddb): validate clear before creating requests
Source-commit: dd415580ac
2026-11-12 17:25:11 +08:00
ldm0 e7ac1c1a4a refactor(fetch): share response state across workers and caches 2026-11-12 16:31:24 +08:00
ldm0 7978356bfc refactor(fetch): introduce shared response metadata 2026-11-12 16:31:24 +08:00
ldm0 6c5776a12f fix(wpt-cross): serve Service Worker request headers as JSON
Source-commit: 3c0479c901
2026-11-12 16:19:51 +08:00
ldm0 890b0ae1ce test(svg): cover nonfinite fill points and evenodd boundaries
Source-commit: b3d4ffcc91
2026-11-12 16:19:26 +08:00
ldm0 908569707f fix(csp): retain Document policy when opening an input stream
Source-commit: 29cb9a6739
2026-11-12 16:18:35 +08:00
ldm0 c728bb28c9 fix(window): validate scheduling method receivers
Source-commit: 3c207eeef1
2026-11-12 16:13:01 +08:00
ldm0 05ea642be9 fix(pdf): deduplicate link regions independently of paint order 2026-11-12 16:02:40 +08:00
ldm0 69602b1c63 fix(layout): paint glyphless inline selection ranges 2026-11-12 16:02:40 +08:00
ldm0 d1a4267185 refactor(csp): borrow self-origin fallbacks during URL checks
Keep captured policy origins ahead of native-origin and Document URL
fallbacks without cloning and mutating a shared parsed policy for each
check. Reuse the same connect check entry point for the top Document.

Cover fallback priority, per-check isolation, and report attribution and
relative endpoint resolution for both policy dispositions.
2026-11-12 16:00:07 +08:00
ldm0 6ba7bc855f refactor(frames): reuse native owner lookup for inherited settings
Resolve iframe creators through owner_dispatch_scope_for_node for initial
policy inheritance, CSP parent lookup, and inherited secure-context checks.
Preserve the existing initial-policy fallback during auxiliary-page
handoff and popup retirement, when dispatch mappings can be unavailable.

Pass DocumentPolicyContainer directly into connect CSP checks.
2026-11-12 16:00:07 +08:00
ldm0 6786667081 test(fetch): cover Body completion tasks in child-opened popups
Source-commit: 137a8e3859
2026-11-12 14:58:34 +08:00
ldm0 f935014934 fix(fetch): preserve author header spelling through native dispatch
Preserve the first accepted header spelling through Header mutations, Request copies and network serialization while keeping public iteration lowercase and case-insensitive lookup. Include twelve real HTTP request cases in both Window and Worker.

Extracted from development commit 55e94176e33e801bb4ca96fe805c3771d153d577.
Base: main (b30f39c580).

Validation (32 build jobs and test threads): cargo fmt --all; cargo clippy --workspace --all-targets --all-features -- -D warnings; cargo nextest run --no-fail-fast.
     Summary [ 147.813s] 22171 tests run: 22171 passed (9 slow), 20 skipped
2026-11-12 14:41:29 +08:00
ldm0 cbf4d0149f fix(layout): paint mixed inline carets without glyph runs 2026-11-12 04:42:48 +08:00
ldm0 02eb87a216 test(protocol): wait for asynchronous popup observations 2026-11-12 04:42:48 +08:00
ldm0 40ace558e3 fix(layout): retain atomic paint stages and inline interleaving 2026-11-12 04:42:48 +08:00
ldm0 077025be8b fix(layout): share atomic inline paint and hit-test ordering 2026-11-12 04:42:48 +08:00
ldm0 c88f14e0cf fix(layout): keep atomic inline descendants above their wrapper 2026-11-12 04:42:48 +08:00
BibekPathak 0165b5b94c fix(layout): hit-test atomic inlines in front of wrapping inline boxes 2026-11-12 04:42:48 +08:00