fn drive_close_browser(
state: &Arc<AppState>,
idx: usize,
label: &str,
browser: Browser,
drain_mode: bool,
) -> boolExpand description
Execute a CloseBrowser action. Already on UI thread.
host.close_browser(force=1) works regardless of HWND state and
triggers the host’s on_before_close callback chain (which
dispatches UnregisterBrowser and drives Stage-2 quit naturally).
Returns true iff the browser’s host had vanished by execute
time and the orchestrator should treat this as a late hostless
transition (relevant for the Stage-2 quit drive — same reasoning
as the planner’s Hostless bucket).