From 40664ec3e3bb7f525871b5dad5f204a6063de3bc Mon Sep 17 00:00:00 2001 From: Scott Haseley Date: Mon, 6 Jun 2022 13:19:01 -0700 Subject: [PATCH 1/2] Add a fully active check for EventTarget in event listener inner invoke --- dom.bs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/dom.bs b/dom.bs index 2634ad032..0c86a6bcf 100644 --- a/dom.bs +++ b/dom.bs @@ -1549,6 +1549,13 @@ and an optional legacyOutputDidListenersThrowFlag, run these steps: +
  • Let targetGlobal be event's {{Event/currentTarget}}'s + associated Realm's global object. + +

  • If targetGlobal is a {{Window}} object and targetGlobal's + associated Document is not fully active, then + continue. +

  • Let global be listener callback's associated Realm's global object. From b54112b3084dc405e17604286b3facb0021eb880 Mon Sep 17 00:00:00 2001 From: Scott Haseley Date: Mon, 13 Jun 2022 09:15:41 -0700 Subject: [PATCH 2/2] cr: annevk Co-authored-by: Anne van Kesteren --- dom.bs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dom.bs b/dom.bs index 0c86a6bcf..4ce5f878a 100644 --- a/dom.bs +++ b/dom.bs @@ -1550,7 +1550,7 @@ and an optional legacyOutputDidListenersThrowFlag, run these steps: each listener in listeners is run once anyway. -->

  • Let targetGlobal be event's {{Event/currentTarget}}'s - associated Realm's global object. + relevant global object.

  • If targetGlobal is a {{Window}} object and targetGlobal's associated Document is not fully active, then