Queue each History back/forward/go delta as its own authorized traversal task and resolve the destination when that task runs. Keep the committed traversal position separate from synchronous history mutations, and use the canonical Window history for isolated-world calls. Preserve Navigation API result-bearing traversal behavior.
Cover consecutive and opposite deltas, initially out-of-range requests, synchronous pushState, canceled and reentrant traversals, child documents, and isolated worlds. Update old coalescing assertions and wait for actual browser-owned history commits in protocol tests.
Validation: cargo fmt --all; cargo clippy --workspace --all-targets --all-features -- -D warnings; cargo nextest run --no-fail-fast (17584 passed, 13 skipped). Overlapping navigation WPT improves from 16/22 to 18/22, with both new cases passing all 8 subtests. Navigation API comparison preserves all 385 previously passing cases out of 432.
CDP smoke: 41/43 passed. The dom-input FileList upload failure reproduces on the parent binary; puppeteer could not start because Node is missing locally. Artifacts: target/wpt-history-traversal-20260908-lcpQpn/{before,confirmed,navigation-after,cdp,cdp-before}.
Align StorageManager.estimate and CDP Storage.getUsageAndQuota with Chromium's
quota clients. Report IndexedDB, Cache Storage, and OPFS by backend, including
named and implicit-default bucket data, without touching local/sessionStorage.
Keep Web Storage's independent per-area quota unchanged.
Cover Web Storage exclusion, an unopened or closed SQLite localStorage backend,
default and named OPFS data, bucket attribution, and command-session isolation.
Wait for the destination traversal state and the background session load notification before inspecting document contents. A best-effort stability result or navigation acknowledgement does not establish either completion boundary.
The existing from_cache flag collapses fresh local responses and revalidated 304 responses into the same state, producing incorrect Resource Timing transferSize.
Carry explicit cache state through buffered and streamed fetches, navigation, subresource snapshots and response interception. Resource Timing reports zero transfer for local hits, validation overhead for merged 304 responses, and body bytes plus header overhead for network responses. Cover disk and memory cache state in the HTTP timing fixture and native response tests.
Replace fixed worker shards and Lane locks with one async worker and one FIFO owner per database. Move synchronous SQL, connection work and catalog operations to the blocking pool. Drain accepted work and await final owner receipts before retirement or runtime teardown.
Use a single maintenance task with a short idle grace and at most one pending check per database, so slow owners cannot stall later rounds. Retry transient open failures in the same prepared generation while preserving terminal missing-file checks. Cover lifecycle races, low-FD creation and recovery, and single-worker host shutdown without new shared resource budgets.
Page.enable must acknowledge a native Document that is already running while protocol Page adoption waits for resources. Reuse the prepared-document lifecycle state instead of starting another lazy initial navigation, which can revoke the existing work and deadlock behind Fetch interception. The regression holds a script response, enables Page before adoption, verifies the original paused Fetch remains valid, and checks the final URL for both normal and crashed targets.
Keep IndexedDbManager as the owner of a required SQLite service, with committed usage and shutdown access. Remove the synchronous storage API, legacy persistence and transaction data copies.
Delete bucket IDB owner-key imports while preserving durable bucket identities, pending deletion and CacheStorage recovery. Port storage fixtures and the native benchmark to actual SQL connections and commands; retain generic key/direction tests and port cold-reopen and invalid-key transaction contracts to SQLite.
Validation: cargo fmt --all; workspace Clippy with all targets/features and -D warnings; nextest 21,815 passed,19 skipped;229 native/storage tests passed all20 stress iterations;memory/disk benchmark smoke passed.
Route the public manager constructor through the SQLite service, including protocol ephemeral browser contexts. Match injected bucket owners and run existing storage fixtures through native completions and the Page task dispatcher.
Recheck the original Document, connectivity and current editing host after
beforeinput. Use the current host for insertion mode and input dispatch,
including inherited plaintext-only editors.
Use the shared UTF-16 range helpers for contenteditable replacement and
caret offsets in drop and Input.insertText.
Disconnect disabled DataTransfer views and detached item wrappers from the
backing store and raw records without invalidating active drag storage,
read-only InputEvent snapshots or explicitly captured files and entries.
Add weak-reference GC regressions and shared Chromium/Moli drop cases.
Validation: cargo fmt --all; full workspace Clippy with warnings denied;
21,288 Nextest tests passed, 19 skipped; Moli build; 164 Python tests;
seven actual Moli drag scenarios and 20 editing cases / 121 assertions;
the same 20 editing cases pass Chromium 145.
Use Page residence and the stable Document token to deduplicate native
history registration and Page adoption. Keep lifecycle epochs in native
execution and cancellation identities. Adopt a restarted epoch's reply
title instead of retaining a title published by its predecessor epoch.
Cover asynchronous document.open/write/close before DCL on reused and
crash-recovery Pages, checking history length/index and replacement
content/title without requiring unchanged entry ids.
Dispatch late Fetch configuration and blocked URLs to the exact running native
Document before Page adoption. Apply admitted title facts to the published
history entry before later pushState operations can create another entry. The adoption path
retains the reply's exact Document identity even before native commit projection,
so journal and reply arrival order cannot register the same history entry twice.
Retire failed debugger-paused Worker targets and sessions when their prepared
owner is superseded, even after native destruction has already been deferred.
A new native commit also ends that deferral; stale Page destruction cannot
start it again. Reuse the existing retirement and session disposal paths.
Cover reused and crash-recovery Pages with four WebSocket regressions. Hold
response headers to enforce policy/title phases and require Worker retirement
before the replacement Document can commit.
Carry matching completion data in each Fetch operation instead of storing a
parallel dispatch kind. Restrict navigation termination to document work and
require native completion results directly, removing impossible fallbacks.
Move one owned workflow payload through execution, cancellation and recovery.
Derive renderer commit observation from its captured native Document.
Wait for the recovered session/frame/loader load in the cancellation integration
test before querying the new realm; a navigation ACK can precede Page adoption.
Capture weak command capabilities for the exact native Document behind early
Fetch pauses. Use them for request, response, authentication and cleanup work,
and restore pause records when dispatch is rejected.
Carry publication Page sources through owner-action projection. Register and
attach workers during handoff, revoke abandoned Page workers, and preserve
source identity for dialogs, choosers, popups and script navigation.
Record native navigation history once, retain observed URLs and titles at
adoption, and publish error-Document failure before its frozen frame commit.
Add controlled WebSocket regressions for handoff, cancellation and recovery.
Run CDP, BiDi, Classic and test workflows through finite synchronous state
access and revocable weak handles. Remove the mailbox, Inline driver,
exclusive completion branches and unused Fetch/Runtime connection APIs.
Keep original document, attachment and call identities through owned waits.
Preserve terminal responses for retired documents, settle empty renderer
boundaries and retain Fetch request announcements until terminal delivery.
Keep body/resource I/O outside shared state and preserve typed error causes.
Validation: cargo fmt --all; full workspace/all-targets/all-features Clippy;
21,456 Nextest tests (19 existing skips); five ownership doctests; same-source
CLI with Playwright, Puppeteer and CDP/BiDi/Classic workflow checks;
1,024 complete navigations; 128 cancelled waits and 4,096 peer commands.
Admit finite commands synchronously and route every asynchronous automation
command through the existing controller. Remove the server's duplicated
owned-command selector and exclusive-connection fallback. Restrict the old
automation and Runtime/Page inline entry points to the test harness.
Prepare desired preload registries before waiting and retain each original
host and Document for ordered Native updates. Reuse target preload/channel
execution and completion-owned recovery without adding task registries.
Pass actual ingress receivers into BiDi realm, layout and frame inventories.
Keep their accepted output prefixes in the original command's event sources;
perform context and target descriptor inventories synchronously.
Preserve original pending navigation replies from admission queries and realm
replay before projecting subscription events. Give the header-only network
baseline fixture its own URL so late baseline events cannot select the
collector request. Keep the original body and success assertions.
Validation: cargo fmt --all; default CLI Clippy; workspace all-targets
all-features Clippy with -D warnings; cargo nextest run --no-fail-fast
(21,413 passed, 19 existing skips); five protocol doctests.
Route navigation, reload and history traversal through the shared automation
owner and Page workflows. Retain the original typed result, navigation
identity and source response across auth handoff and lost ready results.
Reuse the Page completion body for exclusive compatibility and preserve
private task replies across independent renderer output boundaries. Remove
the duplicated protocol-neutral navigation dispatcher and completion loop.
Validate Direct state without a mailbox through the actual renderer
transport, accepted ready-result recovery and Inline compatibility.
Validation: root fmt, workspace Clippy, Nextest (21,393 passed, 19
existing skips), five borrow-boundary doctests, and source-matched
CDP/BiDi/Classic, Playwright, Puppeteer and navigation smoke checks.
Route DOM commands and Page frame inventories, layout metrics and screenshots
through the existing supervised automation workflow. Freeze the original
Page scope for child-frame queries and object registration, preserve typed
errors and exact Native cursors, and remove connection-borrowing dispatch
loops and query helpers. Independent Page inventories keep separate streams.
Exercise direct state access without a mailbox, child-frame projection and
unknown-node errors, recreated hosts with reused literal ids, and distinct
Native frame inventories. Existing DOM fixtures consume complete output
ownership while preserving their semantic assertions.
Run target creation, activation, closing and browser-context removal through
the existing automation workflow controller. Creation owns its admitted blank
document build and preload channel setup; activation reuses the finite surface
and visibility flow. Close and removal reuse the original Target retirement,
disposal, output and recovery owners through the common protocol adapter.
Keep creation and activation completion-owned after their finite admission so
waiter cancellation cannot abandon the original browser transition. Freeze
the actual target host for output projection and creation publication; retain
initial realm/listener and best-effort activation behavior. Delete the old
async automation wrappers and the resulting unused connection helpers.
Validation: root fmt, full workspace Clippy and unfiltered Nextest with default
parallelism; protocol doctests; source-built CLI CDP/Playwright/Puppeteer/BiDi
checks including user-context removal while an author promise is held. Direct
state regressions cover all four lifecycle commands, cancellation before the
first poll and discarded ready creation results.
Route six Input and seven Fetch automation commands through the shared owned
workflow controller. Reuse the existing finite domain admission, native waits,
recovery contexts and typed result owner; remove the old async wrapper loops.
Freeze the original page host for input settlement, downloads, file choosers
and output projection. Keep typed admission causes and canonical document
errors until the protocol boundary. Preserve Fetch metadata before its
independent navigation output boundary and consume only the internal reply.
Supervise Fetch handler revocation during the owned wait and before adopting
a queued ready receipt. Explicit revocation and owner teardown wake weak
lifetime observers without extending the original owner lifetime.
Validation: root fmt, full workspace Clippy and unfiltered Nextest with the
default parallelism; protocol doctests; source-built CLI with CDP, Playwright,
Puppeteer and BiDi, including real keyboard input and request/response-stage
interception with independent progress while blocked.
Run Browser permission, Storage and Emulation automation commands through
one shared supervised workflow and typed result owner. Prepare policy and
Native work synchronously, wait outside protocol state, then adopt results
in finite state turns. Remove the old family-specific async wrappers and
share the Emulation completion logic with CDP.
Keep original Page host and binding authority beside each receipt. Freeze
cookie owner routing and defaults across target activation, reject writes
into recreated contexts, and retain native error sources until transport
projection. Preserve the Runtime output and cancellation contracts.
Move all six neutral Runtime commands, including target/realm lookup,
node materialization, channels and locateNodes, into one ordinary async
workflow using finite state access and the existing command supervisor.
Remove the duplicated preparation/completion and server deferred-reply loops.
Keep the original Page/host/binding authority, typed result, accepted output
and cancellation with their command owner. Recover failed Native output
before adoption, hand channel listeners over at script admission, and release
temporary locateNodes object groups on cancellation. Classic and BiDi use
the same owned wait and move-only completion receipt.
Validate direct-owner before-poll and held-Promise cancellation, ready loss,
recreated hosts, channel progress, context close and actual Native proxy
release. Run root fmt, full workspace Clippy and Nextest, doctests and the
same-source CLI, Playwright, BiDi and Puppeteer suites before committing.
Admit Page and Worker Runtime listeners through the shared ordinary command
workflow and retain their exact target/session, output context and renderer
fence through waits and cancellation. Remove the dedicated listener loop and
its unused nested adapter; restrict the old raw-message async API to tests.
Drive adapter-internal commands with owned tasks while processing protocol
state, renderer and owner completions. Use AdapterReply for their original
responses, and wait for deferred Inspector results before finite completion.
Route every background navigation completion through finite admission and the
existing supervised workflows. Keep failure and download terminals in their
original output context before native cleanup, and remove production renderer
ingress and navigation-completion async fallbacks.
Make ordinary command joins and deferred Runtime response routing synchronous.
Prepare default-placeholder close at admission so native tracing cleanup cannot
revive the target; share the workflow with direct compatibility callers and
remove the replaced cleanup wrappers.
Decode legacy Target messages into ordinary commands with their real session,
renderer policy, cancellation and global reply route. Restore nested replies
for both immediate and background navigation completion without leaking ids.
Replace the raw command loop and exclusive Target execution body with the
shared owned command workflow. Retain accepted replies and renderer fences
across cancelled waiters and discarded state replies, and clear retired Fetch
lifetimes when the same in-flight entry transfers to protected recovery.
Run Input through the shared supervised command workflow and keep accepted
renderer output in its original context even when the state reply is dropped.
Finish native Fetch receipts synchronously and share document completion across
commits, failures, downloads, transfers and superseded requests. Prepare captured
and streaming continuations without borrowing the connection across their waits,
including owners without a background navigation sender. Preserve streaming
ACK timing, response overrides and the original navigation's single terminal.
Delete the Input-specific dispatch context and redundant Fetch/Page completion
paths. Keep requested navigation failures typed with thiserror.
Run Page composite commands in the existing supervised command workflow.
Prepare preload, stop, crash and close ownership at admission; keep native
waits outside state access and complete finite commands synchronously.
Share owned navigation commit, streaming response and retirement logic with
Fetch. Preserve current, nested and background navigation reply ownership,
including accepted terminals during later waits, cancellation and ready loss.
Keep stop cleanup scoped to its original request and retain crashed Pages
before awaiting shutdown.
Remove the child-navigation Owned/Inline split, redundant world phases and
old exclusive Page completion/activation wrappers. Carry typed native errors
and use finite state operations for output, attachment and listener updates.
Keep original Native child facts routable through the unbound Document
handoff without granting business access. Preserve their exact Document tree
through adoption and use the captured owner for events and response bodies
when foreground selection changes.
Validate controlled renderer-held peer progress and recovery, successor
navigation ownership, stale world attachments, full workspace checks, source
CLI compatibility, Playwright, Puppeteer and parallel targeted stress. Replace an old stylesheet fixture clock check with
a script-released CSS gate while preserving the parser/DOM ordering checks.
Supervise Target.disposeBrowserContext from admission and keep Fetch cleanup,
worker retirement, native Page close and focus updates outside connection
borrows. Reuse the existing Page termination receipts and one final commit
instead of maintaining another asynchronous close driver. Remove the old
exclusive context loop and its obsolete Page, focus and worker wrappers;
automation compatibility uses the same ordinary async business flow.
Mark the original context Closing, reject new target creation and late
attachment commits, and exclude closing contexts from focus restoration.
Bind removal to the original renderer runtime so a reused frontend context id
cannot redirect cleanup. Keep main-resource terminals and context disposal
side effects after the Browser acknowledgement without joining independent
Page output streams. Preserve typed Fetch cleanup causes with thiserror.
Validate native-held peer progress, cancellation, ready loss, context id reuse,
Fetch terminals and Page/Worker session teardown. Run the required workspace
checks, parallel stress, current-source CLI, Playwright and Puppeteer, including
multi-page contexts with two Worker clients and a pending inspector promise.
Supervise existing-target sweeps, tab-child attachment and disable cascades in
the original command workflow. Keep initial Documents, binding updates and
session disposal waits outside connection borrows. Remove the old exclusive
sweep and detach loops; compatibility callers reuse the same async flow.
Retain installed policies by weak allocation identity so retired sweeps cannot
attach after disable, replacement or owner closure. Keep provisional sessions
in the original rollback transaction, remove actual commit receipts, and retain
recovery through waiter cancellation and discarded ready results.
Keep independent Page output on its original FIFO while completing the Browser
policy reply. Resolve provisional primaries through their exact Page source
until the frontend route commits, preserving existing sessions' responses.
Restrict retired frontend-release wrappers to tests and preserve typed
initial-Document error causes.
Run the BiDi slow-image HTTP fixture independently of the protocol executor,
retaining its original one-second completion budget and load assertions.
Validate controlled Native holds, synchronous XHR peer progress, replacement
policies, cancellation, ready loss and output order. Run required workspace
checks, parallel stress, and Playwright/Puppeteer against the current CLI.
Run Target.createTarget and Target.attachToTarget completion in the original
supervised command workflow. Keep initial Document installation, binding
updates, surface activation, initial navigation and rollback outside connection
borrows, and reuse that flow in exclusive compatibility callers.
Commit the attachment in the consuming owner turn so a target or parent that
started closing cannot gain a late session. Retain newly admitted rollback in
the original command recovery scope and preserve attached-event-before-reply
ordering through cancellation and discarded ready results.
Box composite waits at their invocation boundaries to keep the legacy actor
stacks bounded. Remove obsolete exclusive background-surface, initial-navigation
and uncommitted-session-disposal wrappers. Preserve Native binding output fences;
use the actual session registry for primary and attached bindings.
Validate controlled Native holds, ready-loss and closing interleavings, an
explicit WebSocket synchronous-XHR gate with peer progress, full workspace
checks, parallel stress, and real clients against the source-built CLI.
Route production scheduler command completion through finite state access and
owned workflows. Move Page Inspector response and Runtime.disable binding waits
outside connection borrows, retaining the original deferred-reply registry,
renderer correlations, output fences and command recovery context. Reuse the
same completion flow in compatibility callers, including Worker completion.
Make protocol-local DOMStorage flushing synchronous and remove its private
prepared payload/slot pipeline and obsolete async projection wrappers. Preserve
typed Native binding failures and their source context. Fence child lifecycle
observation against output already published before its ready response,
without widening unrelated command response boundaries.
Synchronize await correlation snapshots with renderer lease rotation and
consumption so context teardown retires the current call.
Use one async I/O worker per CLI HTTP fixture rather than a CPU-sized pool
in each parallel test process. Keep existing timeout and behavior assertions.
Validate held Native progress, cancelled waiters and lost ready replies, full
workspace checks, protocol doctests, parallel stress, and the source-built CLI
with explicit Worker promise barriers across three Worker types and two clients.
Run main-document lifecycle and download emission plus popup navigation through the existing owner-work supervisor. Retain each exact load interest in the scheduler queue until output handoff, and remove the adapter's private load tasks and completion channel.
Limit production ready-work completion to finite observations. Reuse the renderer navigation workflow and fenced output finalizer for compatibility callers. Classify explicit child frame navigation by its original owner instead of attachment observation timing, preserving Native validation and the parent document.
Validation: root cargo fmt, full workspace Clippy, full Nextest and protocol doctests; source-built CLI compatibility and controlled popup replacement and independent load/cancellation scenarios; parallel stress of owned output and child navigation.
Run complete Page and Worker publications in supervised async workflows with finite state access. Keep each original cursor and Runtime FIFO reservation until output handoff, and remove the duplicate renderer ingress and slot drivers.
Reuse owned Fetch continuations, popup and initial-document installation, navigation and close workflows. Preserve exact load dependencies, independent Native fences, Input automation predecessors, and cancellation output before replacement load. Retain released Runtime output in its existing route FIFO and retire closed Page resources only after their original output tail is projected.
Validation: root cargo fmt, full workspace Clippy, full Nextest and protocol doctests; source-built CLI compatibility, history/Fetch, real clients and worker lifecycle smoke; parallel stress of the observed races.
Keep SharedWorker and ServiceWorker publication cursors outstanding until their retained output is handed off once. Run cleanup and binding replay as ordinary async workflows through finite state access; share the same business bodies with Page retirement and existing projection callers.
Move owner-work supervision from the CDP actor into the common scheduler. Cursor waits continue processing state operations and task terminals, and background navigation stays Running through its final publication. Store Runtime output barriers on the connection, reserve each active route projection's FIFO position, and make finite projection leaves synchronous.
Validation: cargo fmt --all; full workspace/all-targets/all-features Clippy with -D warnings; root Nextest (21,034 passed, 19 skipped); five state-access doctests. Fixed-source CLI checks cover Fetch continuations, Playwright, BiDi, all three Worker runtime kinds, natural and command-driven Worker retirement, and background navigation metadata.