WICG / close-watcher

A web API proposal for watching for close requests (e.g. Esc, Android back button, ...)
https://html.spec.whatwg.org/multipage/interaction.html#close-requests-and-close-watchers
71 stars 5 forks source link

Rewrite to be more like the implementation #22

Closed domenic closed 2 years ago

domenic commented 2 years ago

In particular, this puts all of the smarts, including the cancel/close distinction, into the conceptual "close watcher". This is probably more correct because protections against reentrancy, like the "is running cancel action" boolean, now work for <dialog> too.

Closes #18.


Preview | Diff