Changeset 187115 in webkit
- Timestamp:
- Jul 21, 2015, 12:54:23 PM (11 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
UIProcess/API/APISession.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r187114 r187115 1 2015-07-21 Andreas Kling <akling@apple.com> 2 3 API::Session should clean up its storage in the network process when destroyed. 4 <https://webkit.org/b/147139> 5 <rdar://problem/21838764> 6 7 Reviewed by Anders Carlsson. 8 9 Have ~Session() send a DestroyPrivateBrowsingSession message to all networking processes 10 for ephemeral sessions. This plugs a NetworkStorageSession leak that could retain a large 11 CFNetwork object graph. 12 13 * UIProcess/API/APISession.cpp: 14 (API::Session::~Session): 15 1 16 2015-07-21 Sungmann Cho <sungmann.cho@navercorp.com> 2 17 -
trunk/Source/WebKit2/UIProcess/API/APISession.cpp
r186059 r187115 28 28 29 29 #include <wtf/RunLoop.h> 30 31 #if ENABLE(NETWORK_PROCESS) 32 #include "NetworkProcessMessages.h" 33 #include "WebProcessPool.h" 34 #endif 30 35 31 36 namespace API { … … 76 81 Session::~Session() 77 82 { 83 #if ENABLE(NETWORK_PROCESS) 84 if (m_sessionID.isEphemeral()) { 85 for (auto& processPool : WebKit::WebProcessPool::allProcessPools()) 86 processPool->sendToNetworkingProcess(Messages::NetworkProcess::DestroyPrivateBrowsingSession(m_sessionID)); 87 } 88 #endif 78 89 } 79 90
Note:
See TracChangeset
for help on using the changeset viewer.