Re: [whatwg/dom] Should event dispatch check that the event target is in a fully active realm? (Issue #1084)

Note that this appears to be enforced at the EventTarget level, not at the AbortController/AbortSignal level or at the Event level: https://jsfiddle.net/wL5evuh3/3/.

Given that this is about the EventTarget itself, and thus isn't covered by the Web IDL issue you list, probably the check would have to be at https://dom.spec.whatwg.org/#concept-event-listener-inner-invoke . You might think we could factor it out to surround all of https://dom.spec.whatwg.org/#concept-event-dispatch but that would probably not do the right thing if the first listener removed the frame. (In that case I assume subsequent listeners should not run... but someone should test.)

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

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

Received on Friday, 3 June 2022 21:31:17 UTC