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
commit 7146c33522
Notes: sideshowbarker 2024-07-17 06:35:16 +09:00

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