issues
search
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
Align spec with implementation experience
#8
Closed
domenic
closed
2 years ago
domenic
commented
2 years ago
The constructor needs to
consume
transient user activation, not just check it.
We need a reentrancy flag for the cancel event.
We need to not fire close if destroy() was called during the cancel event handler.
Note the discussion about the Esc key being user activation (#7).
Preview
|
Diff
Preview | Diff