servoshell: Do not focus and raise new auxiliary WebDriver-created WebViews (#37284)

For Desktop port of `request_open_auxiliary_webview`, stay on the
original WebView if the request originates WebDriver.

This is to make sure `webdriver_server::handle_new_window` does not
focus the new window, according to spec. See
c7eba2dbba/tests/wpt/tests/webdriver/tests/classic/new_window/new_window.py (L31-L37)

**To clarify**: this won't change the behaviour when user interacts, but
only affects WebDriver [New
Window](https://w3c.github.io/webdriver/#new-window).

Testing: `./mach test-wpt -r --log-raw "D:/servo log/all.txt"
./tests/wpt/tests/webdriver/tests/classic --product servodriver` based
on 96b0973037

---------

Signed-off-by: Euclid Ye <yezhizhenjiakang@gmail.com>
This commit is contained in:
Euclid Ye 2025-06-09 19:07:09 +08:00 committed by GitHub
parent 0fa3de3937
commit a3c792e5aa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
27 changed files with 76 additions and 158 deletions

View file

@ -4,6 +4,3 @@
[test_no_such_element_with_shadow_root]
expected: FAIL
[test_no_such_element_from_other_window_handle[closed\]]
expected: FAIL

View file

@ -1,9 +0,0 @@
[shadow_dom.py]
[test_shadow_element_click[host_element\]]
expected: FAIL
[test_nested_shadow_element_click[outer_element\]]
expected: FAIL
[test_nested_shadow_element_click[inner_element\]]
expected: FAIL

View file

@ -5,9 +5,6 @@
[test_iframe_is_interactable]
expected: FAIL
[test_readonly_element]
expected: FAIL
[test_not_a_focusable_element]
expected: FAIL
@ -22,3 +19,9 @@
[test_disabled]
expected: FAIL
[test_transparent_element]
expected: FAIL
[test_readonly_element]
expected: FAIL

View file

@ -5,5 +5,5 @@
[test_no_such_element_with_shadow_root]
expected: FAIL
[test_no_such_element_from_other_window_handle[closed\]]
[test_surrogates]
expected: FAIL

View file

@ -1,7 +1,6 @@
[find.py]
expected: TIMEOUT
[test_no_browsing_context]
expected: ERROR
expected: FAIL
[test_no_such_element_with_shadow_root]
expected: FAIL
@ -15,33 +14,12 @@
[test_no_such_element_with_unknown_selector[existent-inside-shadow-root\]]
expected: FAIL
[test_no_such_element_with_startnode_from_other_window_handle]
expected: FAIL
[test_no_such_element_with_startnode_from_other_frame]
expected: FAIL
[test_stale_element_reference[top_context\]]
expected: FAIL
[test_stale_element_reference[child_context\]]
expected: FAIL
[test_find_element[xpath-//a\]]
expected: FAIL
[test_xhtml_namespace[css selector-#linkText\]]
expected: FAIL
[test_xhtml_namespace[link text-full link text\]]
expected: FAIL
[test_xhtml_namespace[partial link text-link text\]]
expected: FAIL
[test_xhtml_namespace[tag name-a\]]
expected: FAIL
[test_xhtml_namespace[xpath-//*[name()='a'\]\]]
expected: FAIL

View file

@ -5,8 +5,5 @@
[test_no_such_element_with_shadow_root]
expected: FAIL
[test_no_such_element_from_other_window_handle[closed\]]
expected: FAIL
[test_computed_roles[<article>foo</article>-article-article\]]
expected: FAIL

View file

@ -5,9 +5,6 @@
[test_no_such_element_with_shadow_root]
expected: FAIL
[test_no_such_element_from_other_window_handle[closed\]]
expected: FAIL
[test_boolean_attribute[audio-attrs0\]]
expected: FAIL

View file

@ -4,6 +4,3 @@
[test_no_such_element_with_shadow_root]
expected: FAIL
[test_no_such_element_from_other_window_handle[closed\]]
expected: FAIL

View file

@ -5,8 +5,5 @@
[test_no_such_element_with_shadow_root]
expected: FAIL
[test_no_such_element_from_other_window_handle[closed\]]
expected: FAIL
[test_web_reference[shadowRoot-ShadowRoot\]]
expected: FAIL

View file

@ -5,8 +5,5 @@
[test_no_such_element_with_shadow_root]
expected: FAIL
[test_no_such_element_from_other_window_handle[closed\]]
expected: FAIL
[test_basic]
expected: FAIL

View file

@ -1,33 +1,3 @@
[get.py]
[test_no_top_browsing_context]
expected: FAIL
[test_no_browsing_context]
expected: FAIL
[test_no_such_element_with_invalid_value]
expected: FAIL
[test_no_such_element_from_other_window_handle[open\]]
expected: FAIL
[test_no_such_element_from_other_window_handle[closed\]]
expected: FAIL
[test_no_such_element_from_other_frame[open\]]
expected: FAIL
[test_no_such_element_from_other_frame[closed\]]
expected: FAIL
[test_stale_element_reference[top_context\]]
expected: FAIL
[test_stale_element_reference[child_context\]]
expected: FAIL
[test_get_shadow_root]
expected: FAIL
[test_no_shadow_root]
expected: FAIL

View file

@ -5,8 +5,5 @@
[test_no_such_element_with_shadow_root]
expected: FAIL
[test_no_such_element_from_other_window_handle[closed\]]
expected: FAIL
[test_get_element_tag_name]
expected: FAIL

View file

@ -5,9 +5,6 @@
[test_no_such_element_with_shadow_root]
expected: FAIL
[test_no_such_element_from_other_window_handle[closed\]]
expected: FAIL
[test_transform_capitalize[space\]]
expected: FAIL

View file

@ -5,9 +5,6 @@
[test_no_such_element_with_shadow_root]
expected: FAIL
[test_no_such_element_from_other_window_handle[closed\]]
expected: FAIL
[test_stale_element_reference[child_context\]]
expected: FAIL

View file

@ -5,8 +5,5 @@
[test_no_such_element_with_shadow_root]
expected: FAIL
[test_no_such_element_from_other_window_handle[closed\]]
expected: FAIL
[test_stale_element_reference[child_context\]]
expected: FAIL

View file

@ -1,6 +1,3 @@
[new.py]
[test_no_top_browsing_context]
expected: FAIL
[test_no_browsing_context]
expected: ERROR

View file

@ -1,9 +1,3 @@
[new_tab.py]
[test_keeps_current_window_handle]
expected: FAIL
[test_opens_about_blank_in_new_tab]
expected: FAIL
[test_initial_selection_for_contenteditable]
expected: FAIL

View file

@ -2,11 +2,5 @@
[test_payload]
expected: FAIL
[test_keeps_current_window_handle]
expected: FAIL
[test_opens_about_blank_in_new_window]
expected: FAIL
[test_initial_selection_for_contenteditable]
expected: FAIL

View file

@ -9,19 +9,16 @@
expected: FAIL
[test_backspace_erases_keys]
expected: ERROR
expected: FAIL
[test_element_in_shadow_tree[outer-open\]]
expected: ERROR
expected: FAIL
[test_element_in_shadow_tree[outer-closed\]]
expected: ERROR
expected: FAIL
[test_element_in_shadow_tree[inner-open\]]
expected: ERROR
expected: FAIL
[test_element_in_shadow_tree[inner-closed\]]
expected: ERROR
[test_element_not_focused]
expected: ERROR
expected: FAIL

View file

@ -1,10 +1,4 @@
[pointer_origin.py]
[test_viewport_inside]
expected: FAIL
[test_pointer_inside]
expected: FAIL
[test_element_center_point]
expected: FAIL

View file

@ -13,6 +13,3 @@
[test_no_browsing_context_when_already_top_level]
expected: FAIL
[test_frame_id_shadow_root]
expected: FAIL

View file

@ -4,6 +4,3 @@
[test_no_browsing_context]
expected: FAIL
[test_format_and_dimensions]
expected: FAIL