Commit 2e65dbf
Update CommandEvent/ToggleEvent retargeting logic
Apparently the original implementation could leak nodes out of the
shadowroot due to a misreading of the spec:
whatwg/html#11345 (review)
This patch makes the new retargeting logic use currentTarget, and if
currentTarget is null, then null is returned instead of returning the
original node.
Bug: 420639769
Change-Id: Ib5e580f83e68aa58ca5b9e8f024391e0191cb604
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6853807
Commit-Queue: Joey Arhar <[email protected]>
Reviewed-by: Mason Freed <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1509850}1 parent 1999c22 commit 2e65dbf
File tree
3 files changed
+11
-15
lines changed- third_party/blink
- renderer/core/dom/events
- web_tests/external/wpt/html/semantics/the-button-element/command-and-commandfor
3 files changed
+11
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
285 | 285 | | |
286 | 286 | | |
287 | 287 | | |
288 | | - | |
| 288 | + | |
289 | 289 | | |
290 | | - | |
291 | | - | |
292 | | - | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
293 | 297 | | |
294 | | - | |
| 298 | + | |
| 299 | + | |
295 | 300 | | |
296 | 301 | | |
297 | 302 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
344 | 344 | | |
345 | 345 | | |
346 | 346 | | |
347 | | - | |
| 347 | + | |
348 | 348 | | |
349 | 349 | | |
350 | 350 | | |
| |||
Lines changed: 0 additions & 9 deletions
This file was deleted.
0 commit comments