mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-25 19:56:30 +00:00
WebDriver: Allow deleting sessions with an invalid window handle
This case was missed in commit b5aa8f65b1
.
This commit is contained in:
parent
077bc68a4c
commit
969361abdb
Notes:
github-actions[bot]
2024-10-06 00:44:11 +00:00
Author: https://github.com/trflynn89
Commit: 969361abdb
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1644
Reviewed-by: https://github.com/shannonbooth ✅
1 changed files with 1 additions and 1 deletions
|
@ -188,7 +188,7 @@ Web::WebDriver::Response Client::delete_session(Web::WebDriver::Parameters param
|
||||||
dbgln_if(WEBDRIVER_DEBUG, "Handling DELETE /session/<session_id>");
|
dbgln_if(WEBDRIVER_DEBUG, "Handling DELETE /session/<session_id>");
|
||||||
|
|
||||||
// 1. If the current session is an active session, try to close the session.
|
// 1. If the current session is an active session, try to close the session.
|
||||||
if (auto session = find_session_with_id(parameters[0]); !session.is_error())
|
if (auto session = find_session_with_id(parameters[0], AllowInvalidWindowHandle::Yes); !session.is_error())
|
||||||
close_session(session.value()->session_id());
|
close_session(session.value()->session_id());
|
||||||
|
|
||||||
// 2. Return success with data null.
|
// 2. Return success with data null.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue