Commit Graph
625 Commits
Author SHA1 Message Date
ldm0 41302e913b fix(window): preserve browsing context opener semantics 2026-11-24 14:28:15 +08:00
ldm0 4232adafcd test(emulation): cover text scale changes before initial page adoption 2026-11-24 06:06:01 +08:00
ldm0 b217be228d fix(cssom): match media rules against their stylesheet document 2026-11-24 06:06:01 +08:00
ldm0 edaa3864bb fix(emulation): reset text scale on session detach 2026-11-24 06:06:01 +08:00
ldm0 f5caa272ec fix(style): resolve text scale per document 2026-11-24 06:06:01 +08:00
ldm0 85a0386045 feat(emulation): honor the operating system text scale
(cherry picked from commit 177b5f90d33865eff06c23521738b726deae76ac)
2026-11-24 06:06:01 +08:00
ldm0 43fd204b30 fix(emulation): apply current media settings when adopting the initial Page 2026-11-24 06:06:01 +08:00
ldm0 7840ae5c4c fix(emulation): preserve blur neighbors for transformed viewport capture 2026-11-24 06:06:01 +08:00
ldm0 89e27cbd0a fix(emulation): bound blurred vision and preserve clip neighbors 2026-11-24 06:06:01 +08:00
ldm0 386f574aab fix(emulation): preserve per-target media and vision overrides 2026-11-24 06:06:01 +08:00
ldm0 997a5440fb feat(emulation): render vision deficiency simulation
(cherry picked from commit b88fa7782613e4b104cbdaf014d837edb94bd545)
2026-11-24 06:06:01 +08:00
ldm0 2c2987b74f fix(paint): clip DevTools box highlights to their outer quads 2026-11-24 04:50:24 +08:00
ldm0 f7989bd3ff fix(cdp): run overlay commands and captures during debugger pauses 2026-11-24 04:50:24 +08:00
ldm0 d79cb70d37 feat(cdp): render DevTools node and rectangle highlights 2026-11-24 04:50:24 +08:00
ldm0 b086aaa1fb fix(molio): gate desktop download handling 2026-11-24 03:43:26 +08:00
ldm0 80468e1335 feat(molio): add file downloads and a downloads page 2026-11-24 03:43:26 +08:00
ldm0 7481e812bf fix(inert): keep touch and CDP hits in the viewport document 2026-11-24 03:18:05 +08:00
ldm0 766bb79c65 fix(inert): preserve input boundaries and hit-test fallbacks 2026-11-24 03:18:05 +08:00
ldm0 e54e1e5159 fix(inert): preserve hit-test policies and viewport controls 2026-11-24 03:18:05 +08:00
ldm0 3e2cf7f101 feat(cdp): expose page domains through Schema.getDomains 2026-11-24 01:53:30 +08:00
Wasabi d5e68b1727 fix(input): pass click_count to mousedown and mouseup detail 2026-11-23 23:18:08 +08:00
ldm0 9e5a752aaa fix(cdp): report committed Document MIME types in frame snapshots
Extracted from wpt-misc-fix commit cadb514514d0bf9486929ad48439353d8039dd05.
2026-11-23 00:23:55 +08:00
ldm0 38eae4c567 fix(network): retain the initial request across cached redirects
Use the first saved snapshot to announce the initial request even when the first transport observation follows a cached hop. Let Fetch announcement tracking suppress duplicate starts and keep the initiator recorded by the resource continuation.
2026-11-22 05:39:52 +08:00
ldm0 3fb412531b fix(network): complete intercepted resource announcements
Publish observed redirect response ExtraInfo at Fetch pauses for all subresources with wire observations. Announce a request when its first transport observation arrives before any pause-side Network start.
2026-11-22 05:39:52 +08:00
ldm0 527bb7506f fix(network): pair early ExtraInfo with redirect requests
Announce redirected subresource hops before projecting their observed headers so cancellation preserves request and cookie attribution. Report intercepted page XHR and fetch requests at send time using their existing Network IDs, preserving redirect response metadata and overridden request bodies.
2026-11-22 05:39:52 +08:00
ldm0andlanyue-llk 190b6bcc95 fix(network): publish subresource ExtraInfo at send time
Publish observed request headers and their cookie report per hop through the bound protocol output transport. Cover redirect hops and cancellation before the response.

Co-authored-by: lanyue-llk <270302213+lanyue-llk@users.noreply.github.com>
2026-11-22 05:39:52 +08:00
ldm0 d3e8d3af15 feat(renderer): advance realtime rendering without capture
Drive animation frames, resize and intersection observers, environment changes, scroll events, and font completion through the page owner. Expose the realtime policy in fetch and serve. Dispatch wheel input through the existing action window and keep transient output separate from screen publication.
2026-11-22 03:15:08 +08:00
ldm0 c4465be52f fix(cdp): preserve buffered Audits issues during replay 2026-11-20 12:40:22 +08:00
ldm0 1a4eeee66e fix(network): preserve worker redirect transport observations
Retain each manually followed HTTP hop's request/response ExtraInfo and
derive redirect availability from observed exchanges instead of a fixed flag.
Keep wire ExtraInfo when interception changes the logical response, and
preserve buffered redirect metadata without announcing requests twice.

Cover Worker fetch/XHR through two 302 Set-Cookie hops, including synthetic
first-hop redirects that must not produce transport ExtraInfo.
2026-11-20 02:23:32 +08:00
ldm0 359c32095a refactor(network): separate request updates from transport observations 2026-11-20 02:23:32 +08:00
ldm0 a5c8897cc8 fix(network): keep prepared cookies out of CDP transport headers
Retain admission cookie metadata in the typed automation event for BiDi, while deferring CDP Cookie headers and ExtraInfo to observed transport data.

Verify a Service Worker supplied iframe script executes without an HTTP script request or invented CDP Cookie header, and keep the prepared metadata available to BiDi.
2026-11-20 02:23:32 +08:00
ldm0 87c9d92c94 fix(network): retain worker request metadata updates
Keep repeated native request snapshots in the output queue so Fetch overrides refresh captured upload bodies. Mark which snapshots announce a new request and suppress duplicate CDP starts during metadata enrichment.

Check that chained binary, text and empty upload overrides preserve a single requestWillBeSent per request and session.
2026-11-20 02:23:32 +08:00
ldm0 ffd465e6ff fix(network): include child script cookies in BiDi admission
Prepare initial headers and cookie metadata through the child Document's
request client, including credentials and browser site-context policy.
BiDi beforeRequestSent and terminal events retain this request metadata.

Defer CDP ExtraInfo separately so admission cookie metadata does not consume
the single later transport ExtraInfo event. Test HTTP 200, HTTP 404 and
cross-origin anonymous script requests.
2026-11-20 02:23:32 +08:00
ldm0 28213784f0 fix(network): retire announced child scripts with their documents
Use Document resource-load leases and shared cache consumer cancellation
for announced child parser scripts. Finish the original request on
retirement, ignore late callbacks, and publish completion independently
of parser-runner lifetime when navigation is cancelled.

Track request ExtraInfo publication separately from enriched cookie
metadata so HTTP-error responses preserve one Cookie ExtraInfo event.

Cover held-response retirement, cancelled srcdoc, late source callbacks,
and repeated metadata enrichment with regression tests.
2026-11-20 02:23:32 +08:00
ldm0 6256a6fa28 fix(network): announce child parser script requests before completion 2026-11-20 02:23:32 +08:00
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 1a08aa3454 fix(target): supervise deferred Inspector initialization 2026-11-20 02:10:47 +08:00
coolswood 5fe7478591 test(target): make the deferred attachment binding apply fixture test match fixture reality
The fixture renderer is not modal-blocked (the pushed dialog only
publishes connection-level state), so the deferred apply settles as
soon as its dispatch runs instead of staying parked behind a live
modal: the completion arrives as success and finishes cleanly. Assert
that, and cover the scheduler warn-path contract by injecting a
failure directly into the completion. Renderer death while the apply
is parked behind a production modal stays covered by the websocket
integration test.
2026-11-20 02:10:47 +08:00
coolswood f3504965ab fix(target): complete Target.attachToTarget while a JavaScript dialog is open
Chromium resolves Target.attachToTarget in ~0 ms even when the target
shows a modal alert/confirm/prompt; moli parked the attach response
behind the renderer's modal wait because the attachment binding apply
was awaited before the commit.

Defer the binding apply instead: a dialog that is already published for
the target (or one that opens while the apply waits) hands the
still-queued dispatch to a supervised background wait, and the attach
commits immediately. The apply settles once the renderer frees up and
its completion is consumed by the scheduler with the same failure
tolerance as the synchronous path, minus the response predecessor
fence that no longer orders anything after publication. Renderer FIFO
still keeps the new session's first command behind the bindings.

createTarget/setAutoAttach share the broader dispatch path and remain
follow-up work.
2026-11-20 02:10:47 +08:00
ldm0 14274ee14a build: update Rust toolchain to 1.100.0
Use matching Bookworm images for CI and release builds. Address the compiler deprecations and Clippy diagnostics introduced by Rust 1.100.0.
2026-11-19 05:56:01 +08:00
ldm0 8d08a55d45 test(fetch): finish unmatched navigation before checking the next pause
Extracted from wpt-misc-fix commit 58bff5149b.
2026-11-19 05:36:54 +08:00
ldm0 2f17076c80 test(fetch): settle initial document before preload interception
Extracted from wpt-misc-fix commit bd4cd0ddb98436fb6253e845cc6fb3ea91dbf6e3.
2026-11-18 19:11:45 +08:00
ldm0 2206f32f40 refactor(devtools): isolate optional runtime modules 2026-11-18 19:09:35 +08:00
ldm0 3ce8ad6cd8 feat(devtools): make external renderer automation optional 2026-11-18 19:09:35 +08:00
ldm0 b9c2aa67c9 refactor(cookies): reuse navigation context for CDP reports 2026-11-18 17:32:19 +08:00
ldm0 6066b6c9c3 refactor(protocol): resolve resource state once per target 2026-11-18 16:53:15 +08:00
ldm0 dc61300081 fix(protocol): bound retained navigation stack usage
Place the large navigation state machine on the heap before retained command workflows poll it. This bounds the production navigation stack while preserving the original cancellation, reply-boundary and retained-result behavior under the default Rust thread stack.
2026-11-18 15:55:18 +08:00
ldm0 c45da1adf5 fix(cdp): release Worker Network cursors on disable 2026-11-18 14:25:57 +08:00