webdriver: Keep constellation alive and Open new top-level browsing context with new session request when none is open (#37410)

Keep Constellation alive even when all browsing context closed in
WebDriver mode. In this case, when creating a new session, we would open
a new top-level browsing context.

Fixes: #37408
Testing: `./mach test-wpt -r
.\tests\wpt\tests\webdriver\tests\classic\close_window\close.py
--product servodriver`

---------

Signed-off-by: Euclid Ye <yezhizhenjiakang@gmail.com>
Signed-off-by: Euclid Ye <euclid.ye@huawei.com>
This commit is contained in:
Euclid Ye 2025-07-30 14:41:58 +08:00 committed by GitHub
parent 0e18057863
commit 8b3e7b1c6a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 50 additions and 41 deletions

View file

@ -12,7 +12,7 @@
expected: FAIL
[test_accept_prompt]
expected: ERROR
expected: FAIL
[test_accept_in_popup_window]
expected: FAIL

View file

@ -1,6 +1,3 @@
[close.py]
[test_close_last_browsing_context]
expected: FAIL
[test_element_usage_after_closing_browsing_context]
expected: ERROR

View file

@ -2,12 +2,6 @@
[test_no_top_browsing_context]
expected: ERROR
[test_no_browsing_context]
expected: ERROR
[test_dismiss_alert]
expected: FAIL
[test_dismiss_confirm]
expected: FAIL

View file

@ -8,11 +8,8 @@
[test_single_file_appends_with_multiple_attribute]
expected: FAIL
[test_focused]
expected: ERROR
[test_strict_hidden]
expected: ERROR
expected: FAIL
[test_strict_display_none]
expected: ERROR
expected: FAIL