fix crash occurs when the focus element is adopted (#36608)

fix crash occurs when the focus element is adopted.

Testing: wpt dom/nodes/insertion-removing-steps/blur-event.window.html
not crash

Fixes:  #36607 #32972

---------

Signed-off-by: kongbai1996 <1782765876@qq.com>
This commit is contained in:
Fuguo 2025-04-30 03:04:22 +08:00 committed by GitHub
parent b6a89ae408
commit bab788f5d5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 45 additions and 3 deletions

View file

@ -7459,6 +7459,15 @@
}
}
},
"focus": {
"focus-element-crash.html": [
"27df1c0b13081827685fa96e0cba2f7b9b03c89a",
[
null,
{}
]
]
},
"fullscreen": {
"crashtests": {
"backdrop-list-item.html": [