Expand description
Transient flat-session helper for CDP page operations.
Every CDP page op in browser-control follows the same shape: attach a
flat session to the target, enable Inspector so renderer crashes are
observable, run the op under the crash-detecting timeout, and detach
regardless of outcome. This helper factors that shape so new native
operations (accessibility tree, input dispatch) do not copy the block
from TabBackend::evaluate a fourth time.
Functions§
- with_
page_ session - Attach to
target_id, runf(session_id)bounded bytimeoutwith crash detection, then detach. Detach is best-effort: the target may already be gone, and the caller’s result is what matters.