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

Group together no-user-activation close watchers #23

Closed domenic closed 2 years ago

domenic commented 2 years ago

... instead of failing to create them. Fixes #19.

Still needs explainer updates, and probably updates to the various security & privacy sections. But I'm putting this up to show that the basic idea is nice and relatively simple. /cc @bathos @jakearchibald in case you're curious.


Preview | Diff

domenic commented 2 years ago

This doesn't give the exact right semantics of "one free close watcher" that I wanted. Consider: