Re: [heycam/webidl] Propagate active script to callbacks (#902)

+1 for making active script the ScriptOrModule component of the incumbent.
Active script and incumbent have similar intention, and the concept of incumbent is already complicated (e.g. https://github.com/whatwg/html/issues/1430). It's better to merge active script into incumbent and maintain the incumbent spec/impl as the single source of truth.

I also suspect the current browsers implementation is more like referring the incumbent rather than the current specification of active script, according to cases where a script triggers event firing synchronously.
WPT: https://github.com/web-platform-tests/wpt/pull/24305
In such cases, https://html.spec.whatwg.org/multipage/webappapis.html#skip-when-determining-incumbent-counter makes the incumbent's script and the active script different.

(Thanks @yuki3, the chat we had today was quite helpful for me!)

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/heycam/webidl/pull/902#issuecomment-658060692

Received on Tuesday, 14 July 2020 08:56:33 UTC