diff options
author | Benjamin Gruenbaum <benjamingr@gmail.com> | 2020-10-26 14:56:48 +0300 |
---|---|---|
committer | Node.js GitHub Bot <github-bot@iojs.org> | 2020-10-28 21:33:03 +0300 |
commit | f20a783a31a004d58d1a7440fa270b01508e82f9 (patch) | |
tree | 049226f7cbc7e1a36560bb2b8c8e2ce4707c470e /doc/api/events.md | |
parent | 81ba3ae699a8ee04e3a5a05b0f7e066b5a486c42 (diff) |
events: make abort_controller event trusted
The AbortController abort event is trusted, currently we fire all
events with isTrusted: false. Allow dispatching events
internally with `isTrusted: true` and add a test for it.
Co-Authored-By: ExE Boss <3889017+ExE-Boss@users.noreply.github.com>
Fixes: https://github.com/nodejs/node/issues/35748
PR-URL: https://github.com/nodejs/node/pull/35811
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'doc/api/events.md')
-rw-r--r-- | doc/api/events.md | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/doc/api/events.md b/doc/api/events.md index a46fa06042c..17420a249be 100644 --- a/doc/api/events.md +++ b/doc/api/events.md @@ -1282,9 +1282,10 @@ This is not used in Node.js and is provided purely for completeness. added: v14.5.0 --> -* Type: {boolean} Always returns `false`. +* Type: {boolean} True for Node.js internal events, false otherwise. -This is not used in Node.js and is provided purely for completeness. +Currently only `AbortSignal`s' `"abort"` event is fired with `isTrusted` +set to `true`. #### `event.preventDefault()` <!-- YAML |