aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAndrei Volykhin <andrei.volykhin@gmail.com>2025-03-29 02:34:04 +0300
committerGitHub <noreply@github.com>2025-03-28 23:34:04 +0000
commit5f5bf87eee34856ec5c1260a3c05b024fc68c99b (patch)
tree8f70a2c690ef62628f352c52b8d551db03514e4c /tests
parented3dd8fbe03f41ee816cbe87c898a0cdc71d1115 (diff)
downloadservo-5f5bf87eee34856ec5c1260a3c05b024fc68c99b.tar.gz
servo-5f5bf87eee34856ec5c1260a3c05b024fc68c99b.zip
dom: Track "removed" event listener status (#36163)
The DOM event listener "removed" status should be supported to track the following situations (with immediate effect of listener removal): - Removing a later event listener while an earlier listener for the same event is running - Nested usage (recursively dispatch another event) of "once" listeners https://dom.spec.whatwg.org/#event-listener-removed During event dispatching requires to clone event listeners list on "invoke" step https://dom.spec.whatwg.org/#concept-event-listener-invoke and the lowercase "event listener" concept in Servo is EventListenerEntry https://dom.spec.whatwg.org/#concept-event-listener Bug: #25479, #25090 Signed-off-by: Andrei Volykhin <andrei.volykhin@gmail.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/wpt/meta/dom/events/remove-all-listeners.html.ini6
-rw-r--r--tests/wpt/meta/html/webappapis/dynamic-markup-insertion/opening-the-input-stream/event-listeners.window.js.ini3
2 files changed, 0 insertions, 9 deletions
diff --git a/tests/wpt/meta/dom/events/remove-all-listeners.html.ini b/tests/wpt/meta/dom/events/remove-all-listeners.html.ini
deleted file mode 100644
index c5607b3918d..00000000000
--- a/tests/wpt/meta/dom/events/remove-all-listeners.html.ini
+++ /dev/null
@@ -1,6 +0,0 @@
-[remove-all-listeners.html]
- [Removing all listeners and then adding a new one should work.]
- expected: FAIL
-
- [Nested usage of once listeners should work.]
- expected: FAIL
diff --git a/tests/wpt/meta/html/webappapis/dynamic-markup-insertion/opening-the-input-stream/event-listeners.window.js.ini b/tests/wpt/meta/html/webappapis/dynamic-markup-insertion/opening-the-input-stream/event-listeners.window.js.ini
index a373f3385ed..c00e2949bf5 100644
--- a/tests/wpt/meta/html/webappapis/dynamic-markup-insertion/opening-the-input-stream/event-listeners.window.js.ini
+++ b/tests/wpt/meta/html/webappapis/dynamic-markup-insertion/opening-the-input-stream/event-listeners.window.js.ini
@@ -10,6 +10,3 @@
[Custom event listeners are to be removed from Window for an active but not fully active document]
expected: FAIL
-
- [Event listeners are to be removed with immediate effect]
- expected: FAIL