[WebDriver] Properly report error: "No such window" (#37385)

For WebDriver, return "No Such Window" properly according to spec.

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 03:43:03 +08:00 committed by GitHub
parent 63e27bcab9
commit 56bbc49f21
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 108 additions and 43 deletions

View file

@ -84,6 +84,10 @@ pub enum WebDriverCommandMsg {
CloseWebView(WebViewId),
/// Focus the webview associated with the provided id.
FocusWebView(WebViewId),
/// Check whether top-level browsing context is open.
IsWebViewOpen(WebViewId, IpcSender<bool>),
/// Check whether browsing context is open.
IsBrowsingContextOpen(BrowsingContextId, IpcSender<bool>),
}
#[derive(Debug, Deserialize, Serialize)]