Add AbortSignal support for event listeners (#39406)

Also fixes several issues with code generation when a dom type is part
of a dictionary.

Part of #34866
Fixes #39398

Signed-off-by: Tim van der Lippe <tvanderlippe@gmail.com>
This commit is contained in:
Tim van der Lippe 2025-09-21 20:57:10 +02:00 committed by GitHub
parent 7abc813fc3
commit 02aab33987
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 98 additions and 100 deletions

View file

@ -1,68 +0,0 @@
[AddEventListenerOptions-signal.any.html]
[Passing an AbortSignal to addEventListener works with the once flag]
expected: FAIL
[Passing an AbortSignal to addEventListener works with the capture flag]
expected: FAIL
[Aborting from a listener does not call future listeners]
expected: FAIL
[Passing an AbortSignal to multiple listeners]
expected: FAIL
[Passing an AbortSignal to addEventListener options should allow removing a listener]
expected: FAIL
[Passing null as the signal should throw]
expected: FAIL
[Passing null as the signal should throw (listener is also null)]
expected: FAIL
[Passing an AbortSignal to addEventListener does not prevent removeEventListener]
expected: FAIL
[Removing a once listener works with a passed signal]
expected: FAIL
[Adding then aborting a listener in another listener does not call it]
expected: FAIL
[Aborting from a nested listener should remove it]
expected: FAIL
[AddEventListenerOptions-signal.any.worker.html]
[Passing an AbortSignal to addEventListener works with the once flag]
expected: FAIL
[Passing an AbortSignal to addEventListener works with the capture flag]
expected: FAIL
[Aborting from a listener does not call future listeners]
expected: FAIL
[Passing an AbortSignal to multiple listeners]
expected: FAIL
[Passing an AbortSignal to addEventListener options should allow removing a listener]
expected: FAIL
[Passing null as the signal should throw]
expected: FAIL
[Passing null as the signal should throw (listener is also null)]
expected: FAIL
[Passing an AbortSignal to addEventListener does not prevent removeEventListener]
expected: FAIL
[Removing a once listener works with a passed signal]
expected: FAIL
[Adding then aborting a listener in another listener does not call it]
expected: FAIL
[Aborting from a nested listener should remove it]
expected: FAIL

3
tests/wpt/meta/dom/events/__dir__.ini vendored Normal file
View file

@ -0,0 +1,3 @@
prefs: [
"dom_abort_controller_enabled:true",
]