webdriver: Assume more consistently that the BrowsingContext exists (#37389)

1. Tidy up some WebDriver handling with browsing context
2. Enable more wpt-test which no longer panic

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

---------

Signed-off-by: Euclid Ye <yezhizhenjiakang@gmail.com>
This commit is contained in:
Euclid Ye 2025-06-11 22:23:47 +08:00 committed by GitHub
parent fab958258e
commit c1ee354c38
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 28 additions and 108 deletions

View file

@ -1,19 +1,9 @@
[close.py]
disabled: panic in test_close_browsing_context_with_accepted_beforeunload_prompt
[test_no_top_browsing_context]
expected: FAIL
[test_no_browsing_context]
expected: FAIL
[test_close_browsing_context_with_accepted_beforeunload_prompt[tab\]]
expected: FAIL
[test_close_browsing_context_with_accepted_beforeunload_prompt[window\]]
expected: ERROR
[test_close_last_browsing_context]
expected: ERROR
expected: FAIL
[test_element_usage_after_closing_browsing_context]
expected: ERROR

View file

@ -1,34 +0,0 @@
[center_point.py]
expected: TIMEOUT
[test_entirely_in_view]
expected: FAIL
[test_css_pixel_rounding[1\]]
expected: FAIL
[test_css_pixel_rounding[2\]]
expected: FAIL
[test_css_pixel_rounding[3\]]
expected: FAIL
[test_css_pixel_rounding[4\]]
expected: FAIL
[test_css_pixel_rounding[5\]]
expected: FAIL
[test_css_pixel_rounding[6\]]
expected: FAIL
[test_css_pixel_rounding[7\]]
expected: FAIL
[test_css_pixel_rounding[8\]]
expected: FAIL
[test_css_pixel_rounding[9\]]
expected: FAIL
[test_css_pixel_rounding[10\]]
expected: FAIL

View file

@ -1,34 +1,12 @@
[forward.py]
disabled: consistent panic
[test_no_top_browsing_context]
expected: ERROR
[test_no_browsing_context]
expected: ERROR
[test_basic]
expected: ERROR
[test_no_browsing_history]
expected: ERROR
expected: FAIL
[test_seen_nodes[http\]]
expected: ERROR
expected: FAIL
[test_seen_nodes[https\]]
expected: ERROR
expected: FAIL
[test_seen_nodes[https coop\]]
expected: ERROR
[test_history_pushstate]
expected: ERROR
[test_data_urls]
expected: ERROR
[test_fragments]
expected: ERROR
[test_removed_iframe]
expected: ERROR
expected: FAIL

View file

@ -1,8 +1,4 @@
[pointer_pen.py]
expected: TIMEOUT
[test_no_top_browsing_context]
expected: FAIL
[test_no_browsing_context]
expected: FAIL