mirror of
https://github.com/servo/servo.git
synced 2025-09-30 00:29:14 +01:00
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:
parent
7abc813fc3
commit
02aab33987
9 changed files with 98 additions and 100 deletions
|
@ -24,11 +24,14 @@ interface EventTarget {
|
|||
boolean dispatchEvent(Event event);
|
||||
};
|
||||
|
||||
// https://dom.spec.whatwg.org/#dictdef-eventlisteneroptions
|
||||
dictionary EventListenerOptions {
|
||||
boolean capture = false;
|
||||
};
|
||||
|
||||
// https://dom.spec.whatwg.org/#dictdef-addeventlisteneroptions
|
||||
dictionary AddEventListenerOptions : EventListenerOptions {
|
||||
boolean passive;
|
||||
boolean once = false;
|
||||
AbortSignal signal;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue