Commit f08e2c0
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: #35748
PR-URL: #35811
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>1 parent 438d9de commit f08e2c0Copy full SHA for f08e2c0
File tree
Expand file treeCollapse file tree
5 files changed
+59
-6
lines changedOpen diff view settings
Filter options
- doc/api
- lib/internal
- per_context
- test/parallel
Expand file treeCollapse file tree
5 files changed
+59
-6
lines changedOpen diff view settings
Collapse file
+3-2Lines changed: 3 additions & 2 deletions
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1282 | 1282 | |
1283 | 1283 | |
1284 | 1284 | |
1285 | | - |
| 1285 | + |
1286 | 1286 | |
1287 | | - |
| 1287 | + |
| 1288 | + |
1288 | 1289 | |
1289 | 1290 | |
1290 | 1291 | |
|
Collapse file
lib/internal/abort_controller.js
Copy file name to clipboardExpand all lines: lib/internal/abort_controller.js+5-2Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
11 | 11 | |
12 | 12 | |
13 | 13 | |
14 | | - |
| 14 | + |
| 15 | + |
15 | 16 | |
16 | 17 | |
17 | 18 | |
| ||
49 | 50 | |
50 | 51 | |
51 | 52 | |
52 | | - |
| 53 | + |
| 54 | + |
| 55 | + |
53 | 56 | |
54 | 57 | |
55 | 58 | |
|
Collapse file
lib/internal/event_target.js
Copy file name to clipboardExpand all lines: lib/internal/event_target.js+14-1Lines changed: 14 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
9 | 9 | |
10 | 10 | |
11 | 11 | |
| 12 | + |
12 | 13 | |
13 | 14 | |
14 | 15 | |
15 | 16 | |
| 17 | + |
16 | 18 | |
17 | 19 | |
18 | 20 | |
| ||
41 | 43 | |
42 | 44 | |
43 | 45 | |
| 46 | + |
44 | 47 | |
45 | 48 | |
46 | 49 | |
| ||
61 | 64 | |
62 | 65 | |
63 | 66 | |
64 | | - |
| 67 | + |
| 68 | + |
| 69 | + |
| 70 | + |
| 71 | + |
| 72 | + |
65 | 73 | |
66 | 74 | |
67 | 75 | |
| ||
77 | 85 | |
78 | 86 | |
79 | 87 | |
| 88 | + |
| 89 | + |
| 90 | + |
| 91 | + |
80 | 92 | |
81 | 93 | |
82 | 94 | |
| ||
573 | 585 | |
574 | 586 | |
575 | 587 | |
| 588 | + |
576 | 589 | |
577 | 590 | |
Collapse file
lib/internal/per_context/primordials.js
Copy file name to clipboardExpand all lines: lib/internal/per_context/primordials.js+4Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
101 | 101 | |
102 | 102 | |
103 | 103 | |
| 104 | + |
| 105 | + |
| 106 | + |
| 107 | + |
104 | 108 | |
105 | 109 | |
106 | 110 | |
|
Collapse file
test/parallel/test-abortcontroller.js
Copy file name to clipboardExpand all lines: test/parallel/test-abortcontroller.js+33-1Lines changed: 33 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | | - |
| 1 | + |
2 | 2 | |
3 | 3 | |
4 | 4 | |
5 | 5 | |
6 | 6 | |
| 7 | + |
7 | 8 | |
8 | 9 | |
| 10 | + |
9 | 11 | |
10 | 12 | |
11 | 13 | |
| ||
20 | 22 | |
21 | 23 | |
22 | 24 | |
| 25 | + |
| 26 | + |
| 27 | + |
| 28 | + |
| 29 | + |
| 30 | + |
| 31 | + |
| 32 | + |
| 33 | + |
| 34 | + |
| 35 | + |
| 36 | + |
| 37 | + |
| 38 | + |
| 39 | + |
| 40 | + |
| 41 | + |
| 42 | + |
| 43 | + |
| 44 | + |
| 45 | + |
| 46 | + |
| 47 | + |
| 48 | + |
| 49 | + |
| 50 | + |
| 51 | + |
| 52 | + |
| 53 | + |
| 54 | + |
0 commit comments