mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 06:27:45 +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
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