A VM created while dialog waiting was enabled cached that value locally. The
cached true value survived disabling or detaching the final Page observer,
so later dialogs could still wait after the shared context flag was false.
Read the BrowserContext shared switch for every dialog. Remove the VM-local
Boolean, its constructor snapshot, the ScriptVm/JsContextHost setters, and the
obsolete Page setter and renderer command. Page domain commands now rely on
the existing shared subscription aggregation.
Cover enabled-at-construction VMs and interleaved disable/detach across two
Pages and different sessions. Verify that confirm returns without a modal wait
while a native handler remains available to handle the prompt. Keep standalone
headless dialog fallback coverage through the shared switch.
Complete a handlerless renderer prefix directly and emit its native opening
and closing facts without inserting it into the Page queue. Existing queued
dialogs remain owned by their subscription cleanup paths.
Use Vec::extract_if for ordered queue removal and clone the closed-event
payload for each CDP projection. Retain the late-prefix regression and verify
that rejecting a new prefix leaves an older queued dialog handleable.
Native discovery and rejected commands could leave a dialog handler marked
available indefinitely. Register Classic and BiDi handlers explicitly at
session setup or attachment, and release them on session end, disconnect,
and runtime shutdown before waiting for renderer cleanup.
Keep adapter registrations independent and distinguish handler availability
from modal waiting. Apply waiting policy to existing and newly created browser
contexts. Releasing the final native handler settles dialogs without an
original Page observer.
Centralize Page subscription release while preserving the distinct disable
and detach cancellation policies. Cover command purity, independent adapter
lifetimes, context initialization, abandoned completions, and Classic dialog
handling after a real BiDi disconnect or session.end.
Use the same native handler availability check as session disposal before
cancelling dialogs for a disabled Page subscription. Disabling Page still
revokes that session's callback without changing the native frontend's choice
of modal waiting.
Cover Primary and Attached sessions with Classic and BiDi native handlers,
including callback revocation across Page.disable/Page.enable and accepting
the retained prompt through native automation.
The active target can be removed while background Page sessions still need
detach cleanup. Check the optional active target when recomputing the shared
dialog handler mode, and continue counting background subscribers. This avoids
a protocol sequence panic during Puppeteer reconnect and target cleanup.
Cover disabling background Page sessions without an active target: retain the
handler while a peer remains enabled, then clear it after the final subscriber.
Dismiss queued dialogs when their final original Page subscriber detaches,
before waiting for session cleanup. Late Page subscribers cannot inherit an
existing dialog. Preserve dialogs that still have a native automation handler
or another original subscriber, without introducing renderer waits on detach.
Cancel every dialog observed by a disabling Page subscription, including
queued entries behind an unobserved head. Also settle renderer dialog prefixes
that arrive after the last handler has left.
Emit one native opening/closing fact per physical dialog and project CDP wire
events independently for each subscribed session. Track native handler
availability separately from renderer modal waiting so Classic and BiDi retain
their existing behavior.
Cover detach and disconnect over independent WebSockets, queued cancellation,
late subscriptions, native handler preservation, and event fanout counts.
Own pending dialogs and prompt text on PageTargetHost so disposing Primary
cannot lose a renderer completion. Settle dialogs when their document is
replaced or their target closes or drops.
Capture Page subscription generations when a dialog opens. Only those CDP
observers may handle or cancel it, and Page.disable consistently dismisses
the shared dialog from either session. Keep native automation independent
of Page.enable and send CDP dialog events only to enabled Page sessions.
Cover Primary disposal, disabled and late-enabled observers, Page.disable,
target drop, and dialog handling over independent WebSocket connections.
Synchronize the existing multi-session regression on specific events and
responses instead of elapsed time.
Preserve the protocol helper's truncating numeric conversion and validate
the resulting close code without changing the shared WebIDL Clamp converter.
Cover native bounds and the observable WebSocketError constructor result.
Run all 14,064 WPT cases against the fixed release binary with 50 CDP
workers, without case filters or automatic case retries.
Record 10,341 passes, 3,461 failures, 250 timeouts, seven errors, four
harness stalls and one crash. Preserve these full-run observations even
when separate paired probes pass; do not replace failures with retries.
Pinned V8 15.2 can reuse Function and indirect-eval compilation entries
from a script with a different nonce or base URL. This rejects valid
dynamic imports once module CSP admission checks the inherited metadata.
Append a precomputed referrer-specific trailing comment after the existing
CSP and Trusted Types checks. Keep untracked cache keys separate, preserve
UTF-16 and Function source text, and retain creator metadata when generated
functions outlive their compiling script.
Cover dynamic Function variants, direct and indirect eval, cross-realm
reuse, retained functions, lexical scope and source preservation.
A newer navigation can cancel a replacement response while its Document is
already installed and still completing its requested lifecycle stage.
Detach that observer and continue on the existing Page, preserving its
navigation reply policy and original close owner.
Cover cancellation after the native Document is installed but before
protocol adoption, followed by beforeunload for the successor navigation.
Check ordinary ready timers before admitting an unexpired idle callback. An earlier idle transport deadline must not overtake later ready work in the same heap, including queued popup javascript navigation.
Keep expired idle callbacks runnable. Cover the real owner loop with an HTTP completion witness and six function, source, child-window, expired, cancelled, and future timer scenarios.
Window.close marks a browsing context closed before its queued document
cleanup. Do not admit ServiceWorker requests during that gap, where
cleanup can retire their resolvers before a surviving caller sees them.
Cover lightweight popups and renderer-owned auxiliary Pages, including
reentrant URL conversion. Preserve requests made during beforeunload,
document owner retirement, and stale completion authorization.