[WebDriver: Release Action] Fix panic by work around buggy spec (#37624)

1. Narrow the lifetime of `input_cancel_list` to avoid Runtime multiple
BorrowMut error.
2. Work around the buggy spec by removing matching item in
`input_cancel_list` when dispatch `keyUp` and `mouseUp`. See
https://github.com/servo/servo/issues/37579#issuecomment-2990762713

Testing: All WebDriver WPT test.
Fixes: #37579

---------

Signed-off-by: Euclid Ye <yezhizhenjiakang@gmail.com>
This commit is contained in:
Euclid Ye 2025-06-23 16:33:18 +08:00 committed by GitHub
parent 795367c751
commit 5e252d0ef6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 39 additions and 24 deletions

View file

@ -1,9 +1,3 @@
[send_keys.py]
[test_no_browsing_context]
expected: FAIL
[test_no_such_element_with_shadow_root]
expected: FAIL
[test_surrogates]
expected: FAIL

View file

@ -2,9 +2,6 @@
[test_no_browsing_context]
expected: FAIL
[test_no_such_element_with_shadow_root]
expected: FAIL
[test_no_such_element_with_startnode_from_other_frame]
expected: FAIL

View file

@ -2,9 +2,6 @@
[test_no_browsing_context]
expected: FAIL
[test_no_such_element_with_shadow_root]
expected: FAIL
[test_no_such_element_with_startnode_from_other_frame]
expected: FAIL

View file

@ -5,14 +5,8 @@
[test_key_down_closes_browsing_context]
expected: FAIL
[test_element_in_shadow_tree[outer-open\]]
expected: FAIL
[test_element_in_shadow_tree[outer-closed\]]
expected: FAIL
[test_element_in_shadow_tree[inner-open\]]
expected: FAIL
[test_element_in_shadow_tree[inner-closed\]]
expected: FAIL

View file

@ -4,6 +4,3 @@
[test_control_click[\\ue051-ctrlKey\]]
expected: FAIL
[test_release_control_click]
expected: FAIL