demo · v136
Cancel Event Tracer
Every path that can close a <dialog> — ESC, backdrop click, programmatic close(), the new command="request-close" attribute, and the new HTMLDialogElement.requestClose() method — on the same dialog. The tracer logs whether cancel fires before close, and whether preventDefault() in cancel stops the dialog from closing.
Note:
requestClose() and command="request-close" ship in Chrome 136. Older browsers fall back to close() — the tracer marks that lane as fallback.