Changeset 219290 in webkit
- Timestamp:
- Jul 10, 2017 6:21:35 AM (7 years ago)
- Location:
- trunk/Source
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r219289 r219290 1 2017-07-10 Carlos Garcia Campos <cgarcia@igalia.com> 2 3 [SOUP] SoupCookieJar is never released (resulting in sqlite temp files lying around) 4 https://bugs.webkit.org/show_bug.cgi?id=166029 5 6 Reviewed by Michael Catanzaro. 7 8 Add clearSoupNetworkSessionAndCookieStorage() to clear the SoupNetworkSession and cookie storage of the main 9 network session, ensuring the cookies database is properly closed. 10 11 * platform/network/NetworkStorageSession.h: 12 * platform/network/soup/NetworkStorageSessionSoup.cpp: 13 (WebCore::NetworkStorageSession::clearSoupNetworkSessionAndCookieStorage): 14 1 15 2017-07-10 Carlos Garcia Campos <cgarcia@igalia.com> 2 16 -
trunk/Source/WebCore/platform/network/NetworkStorageSession.h
r218615 r219290 93 93 SoupNetworkSession* soupNetworkSession() const { return m_session.get(); }; 94 94 SoupNetworkSession& getOrCreateSoupNetworkSession() const; 95 void clearSoupNetworkSessionAndCookieStorage(); 95 96 SoupCookieJar* cookieStorage() const; 96 97 void setCookieStorage(SoupCookieJar*); -
trunk/Source/WebCore/platform/network/soup/NetworkStorageSessionSoup.cpp
r215883 r219290 104 104 } 105 105 106 void NetworkStorageSession::clearSoupNetworkSessionAndCookieStorage() 107 { 108 ASSERT(defaultSession().get() == this); 109 m_session = nullptr; 110 m_cookieObserverHandler = nullptr; 111 m_cookieStorage = nullptr; 112 } 113 106 114 void NetworkStorageSession::cookiesDidChange(NetworkStorageSession* session) 107 115 { -
trunk/Source/WebKit2/ChangeLog
r219287 r219290 1 2017-07-10 Carlos Garcia Campos <cgarcia@igalia.com> 2 3 [SOUP] SoupCookieJar is never released (resulting in sqlite temp files lying around) 4 https://bugs.webkit.org/show_bug.cgi?id=166029 5 6 Reviewed by Michael Catanzaro. 7 8 Clear the SoupNetworkSession and cookie storage after the main loop quits. 9 10 * NetworkProcess/soup/NetworkProcessMainSoup.cpp: 11 (WebKit::NetworkProcessMainUnix): 12 1 13 2017-07-10 Wenson Hsieh <wenson_hsieh@apple.com> 2 14 -
trunk/Source/WebKit2/NetworkProcess/soup/NetworkProcessMainSoup.cpp
r206772 r219290 30 30 #include "ChildProcessMain.h" 31 31 #include "NetworkProcessMainUnix.h" 32 #include <WebCore/NetworkStorageSession.h> 32 33 33 34 namespace WebKit { 34 35 36 class NetworkProcessMain final: public ChildProcessMainBase { 37 public: 38 void platformFinalize() override 39 { 40 WebCore::NetworkStorageSession::defaultStorageSession().clearSoupNetworkSessionAndCookieStorage(); 41 } 42 }; 43 35 44 int NetworkProcessMainUnix(int argc, char** argv) 36 45 { 37 return ChildProcessMain<NetworkProcess, ChildProcessMainBase>(argc, argv);46 return ChildProcessMain<NetworkProcess, NetworkProcessMain>(argc, argv); 38 47 } 39 48
Note: See TracChangeset
for help on using the changeset viewer.