[whatwg/dom] Userland AbortSignal (Issue #1195)

Splitting this from #1016.

Writing a robust userland `AbortSignal` consumer is tricky. In particular you might not get your event listener due to someone else listening calling `stopImmediatePropagation()`.

Possible solutions:

1. We invent a new way of dispatching that disallows preventing `stopImmediatePropagation()`. (@smaug---- is not a fan of this as per the other thread.)
2. The consumer uses `AbortSignal.any()` to get a copy without other event listeners and registers their event listener there.
3. We define userland "abort algorithms" somehow.

cc @rniwa @smaug---- @mfreed7 @domenic @shaseley 

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/issues/1195
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/dom/issues/1195@github.com>

Received on Friday, 5 May 2023 08:51:59 UTC