Firefox for Web Developers @webdevs.firefox.com · Mar 25

The CloseWatcher API landed in Firefox 149, making it easy to listen for platform-specific 'dismiss' signals. Here's how it works:

141 likes 8 replies

?

Replies

Mihkel Eidast · Mar 25

Is there any way to polyfill this?

Amos Manneschmidt · Mar 25

Ah so kinda a more robust alternative to adding an on “blur” event listener.

Trying To Code · Mar 26

print("this seems pretttty useful")

Mateusz Walendzik · Mar 26

I love this new approach from the browsers of exposing more internally used APIs. Btw, cool t-shirt, Firefox new characters rocks 🦊 💫

Firefox for Web Developers · Mar 25

And, of course, the full documentation on MDN developer.mozilla.org/en-US/docs/W...

Maikel Krause · Mar 25

I knew about CloseWatcher but not the auto stacking between user interactions part. Pretty cool

Billy · Mar 25

Nice. This stuff is awful to handle manually