We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f0b98a4 + 09fa7d0 commit b4df313Copy full SHA for b4df313
1 file changed
Source/WebKit/NetworkProcess/soup/NetworkProcessMainSoup.cpp
@@ -49,10 +49,14 @@ class NetworkProcessMainSoup final: public AuxiliaryProcessMainBaseNoSingleton<N
49
50
void platformFinalize() override
51
{
52
- // FIXME: Is this still needed? We should probably destroy all existing sessions at this point instead.
53
// Needed to destroy the SoupSession and SoupCookieJar, e.g. to avoid
54
// leaking SQLite temporary journaling files.
55
- process().destroySession(PAL::SessionID::defaultSessionID());
+ Vector<PAL::SessionID> sessionIDs;
+ process().forEachNetworkSession([&sessionIDs](auto& session) {
56
+ sessionIDs.append(session.sessionID());
57
+ });
58
+ for (auto& sessionID : sessionIDs)
59
+ process().destroySession(sessionID);
60
}
61
};
62
0 commit comments