confirm() from a driven click wedges the page: no auto-dismiss, handle_dialog can't resolve it, evals block until window close
A confirm() raised by an isTrusted click wedges the page: drive-mode auto-dismiss does not fire, handle_dialog cannot resolve it, and every subsequent eval blocks until the window closes.
Found by the daily verb battery. Fixture: #confirm-btn does window.confirm(...) in its onclick. Sequence: nbrowser_click #confirm-btn -> nbrowser_handle_dialog {action:"accept"} -> eval.
Observed (bridge 0.2.5, ext 0.2.0):
- The events-doc contract says dialogs are "auto-dismissed while you are actively driving" - this one is NOT auto-dismissed (the click that opens it IS a driven, isTrusted click).
- handle_dialog {action:accept} returns the "modal may have closed" no-pending response while the dialog is demonstrably still up.
- All subsequent evals return no result (page JS blocked by the pending confirm) until nbrowser_close_window tears the window down (which succeeds - so recovery works, resolution does not).
Expected: either the auto-dismiss covers dialogs opened by driven clicks (and reports via nbrowser_events), or handle_dialog resolves a pending dialog. Today neither path works, so any user flow that trips a confirm() dies mid-drive - the Intuit incident class the driving skill warns about.
Battery quarantines this as a known-bug pending fix; the test asserts dlg-note becomes confirm:true (accept landed) or confirm:false (auto-dismiss won).