From d8f3c9c71d22d8aab3c517686ec3b4208b1d962a Mon Sep 17 00:00:00 2001 From: Scott Haseley Date: Wed, 8 Jun 2022 13:12:03 -0700 Subject: [PATCH] [dom] Add tests for "inner invoke" with EventTarget in a detached iframe This adds tests for dispatching events to an EventTarget created in an iframe that gets detached --- both prior to and during event dispatch. The behavior of engines for this case is to not run event listeners after the EventTarget's associated global is detached, which is what we check for in the tests. Spec: https://dom.spec.whatwg.org/#concept-event-listener-inner-invoke PR: https://github.com/whatwg/dom/pull/1085 Bug: 1323391 Change-Id: I57aac7d444d3532ad0940a228452d206b5c1be07 --- dom/events/EventTarget-detached-iframe.html | 62 +++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 dom/events/EventTarget-detached-iframe.html diff --git a/dom/events/EventTarget-detached-iframe.html b/dom/events/EventTarget-detached-iframe.html new file mode 100644 index 00000000000000..34d7a8443130be --- /dev/null +++ b/dom/events/EventTarget-detached-iframe.html @@ -0,0 +1,62 @@ + + +EventTarget in Detached iframe + + + + + +