script: Focus on mousedown instead of mouse click according to spec (#38589)

- Focus on mousedown instead of mouse click according to
[spec](https://w3c.github.io/uievents/#handle-native-mouse-down)
- Refactor to follow spec closer and make things more clear.
- Add some spec link.
- Remove some dead spec link.

Still some preparation before implementing #38435.
Testing: No regression in WebDriver & WPT. But update some outdated
test.
Fixes: #38588

---------

Signed-off-by: Euclid Ye <euclid.ye@huawei.com>
This commit is contained in:
Euclid Ye 2025-08-12 10:40:21 +08:00 committed by GitHub
parent d2122c8bd8
commit 5d21234872
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 69 additions and 31 deletions

View file

@ -1,9 +1,17 @@
[navigate.py]
expected: TIMEOUT
[test_link_hash]
[test_link_from_toplevel_context_with_target[_blank\]]
expected: FAIL
[test_link_from_toplevel_context_with_target[_blank\]]
[test_link_from_nested_context_with_target[]]
expected: FAIL
[test_link_from_nested_context_with_target[_parent]]
expected: FAIL
[test_link_from_nested_context_with_target[_self]]
expected: FAIL
[test_link_from_nested_context_with_target[_top]]
expected: FAIL
[test_link_from_toplevel_context_with_target[_parent\]]

View file

@ -7,3 +7,9 @@
[test_dismiss[prompt-None\]]
expected: FAIL
[test_accept[alert-None\]]
expected: FAIL
[test_dismiss[confirm-False\]]
expected: FAIL

View file

@ -10,3 +10,6 @@
[test_seen_nodes[https coop\]]
expected: FAIL
[test_removed_iframe]
expected: FAIL

View file

@ -1,3 +1,4 @@
[navigation.py]
expected: TIMEOUT
[test_pointer]
expected: FAIL

View file

@ -0,0 +1,3 @@
[pointer_modifier_click.py]
[test_many_modifiers_click]
expected: FAIL

View file

@ -4,3 +4,6 @@
[test_set_to_available_size]
expected: FAIL
[test_negative_x_y]
expected: FAIL