mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-14 13:32:23 +00:00
WebDriver: Close all WebContent connections while destroying a session
While closing a session, it is necessary to close all windows that may have been opened during that session.
This commit is contained in:
parent
63c16ff41a
commit
7146c33522
Notes:
sideshowbarker
2024-07-17 06:35:16 +09:00
Author: https://github.com/kalenikaliaksandr
Commit: 7146c33522
Pull-request: https://github.com/SerenityOS/serenity/pull/17921
Reviewed-by: https://github.com/trflynn89 ✅
1 changed files with 3 additions and 1 deletions
|
@ -34,7 +34,9 @@ Session::~Session()
|
|||
|
||||
// 1. Perform the following substeps based on the remote end’s type:
|
||||
// NOTE: We perform the "Remote end is an endpoint node" steps in the WebContent process.
|
||||
web_content_connection().close_session();
|
||||
for (auto& it : m_windows) {
|
||||
it.value.web_content_connection->close_session();
|
||||
}
|
||||
|
||||
// 2. Remove the current session from active sessions.
|
||||
// NOTE: We are in a session destruction which means it is already removed
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue