mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 13:19:05 +00:00
WebDriver: Do not ignore the result of closing a session
This commit is contained in:
parent
5c117cdcec
commit
0ae015e266
Notes:
sideshowbarker
2024-07-17 02:29:45 +09:00
Author: https://github.com/trflynn89
Commit: 0ae015e266
Pull-request: https://github.com/SerenityOS/serenity/pull/17748
Reviewed-by: https://github.com/kalenikaliaksandr
Reviewed-by: https://github.com/linusg ✅
1 changed files with 1 additions and 1 deletions
|
@ -123,7 +123,7 @@ Web::WebDriver::Response Session::close_window()
|
|||
|
||||
// 4. If there are no more open top-level browsing contexts, then close the session.
|
||||
if (m_windows.is_empty())
|
||||
stop();
|
||||
TRY(stop());
|
||||
|
||||
// 5. Return the result of running the remote end steps for the Get Window Handles command.
|
||||
return get_window_handles();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue