1
Fork 0
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:
Aliaksandr Kalenik 2023-03-19 13:52:14 +03:00 committed by Jelle Raaijmakers
parent 63c16ff41a
commit 7146c33522

View file

@ -34,7 +34,9 @@ Session::~Session()
// 1. Perform the following substeps based on the remote ends 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