From b4e3e5164baa78e6d882754f6921a8cc54e4e4c2 Mon Sep 17 00:00:00 2001 From: Scott Haseley Date: Wed, 8 Jun 2022 10:37:07 -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 | 63 +++++++++++++++++++++ 1 file changed, 63 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 000000000000000..57ec43dafe20e79 --- /dev/null +++ b/dom/events/EventTarget-detached-iframe.html @@ -0,0 +1,63 @@ + + +EventTarget in Detached iframe + + + + +