⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 187297 in webkit


Ignore:
Timestamp:
Jul 23, 2015, 11:24:35 PM (11 years ago)
Author:
Lucas Forschler
Message:

Merged r187115. rdar://problem/21838764

Location:
branches/safari-601.1-branch/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/safari-601.1-branch/Source/WebKit2/ChangeLog

    r187294 r187297  
     12015-07-23  Lucas Forschler  <lforschler@apple.com>
     2
     3        Merge r187115
     4
     5    2015-07-21  Andreas Kling  <akling@apple.com>
     6
     7            API::Session should clean up its storage in the network process when destroyed.
     8            <https://webkit.org/b/147139>
     9            <rdar://problem/21838764>
     10
     11            Reviewed by Anders Carlsson.
     12
     13            Have ~Session() send a DestroyPrivateBrowsingSession message to all networking processes
     14            for ephemeral sessions. This plugs a NetworkStorageSession leak that could retain a large
     15            CFNetwork object graph.
     16
     17            * UIProcess/API/APISession.cpp:
     18            (API::Session::~Session):
     19
    1202015-07-23  Lucas Forschler  <lforschler@apple.com>
    221
  • branches/safari-601.1-branch/Source/WebKit2/UIProcess/API/APISession.cpp

    r186059 r187297  
    2828
    2929#include <wtf/RunLoop.h>
     30
     31#if ENABLE(NETWORK_PROCESS)
     32#include "NetworkProcessMessages.h"
     33#include "WebProcessPool.h"
     34#endif
    3035
    3136namespace API {
     
    7681Session::~Session()
    7782{
     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
    7889}
    7990
Note: See TracChangeset for help on using the changeset viewer.