WebsiteDataStore should clean up its storage in the network process when destroyed.
authorakling@apple.com <akling@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 28 Jul 2015 03:26:53 +0000 (03:26 +0000)
committerakling@apple.com <akling@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 28 Jul 2015 03:26:53 +0000 (03:26 +0000)
commitddff60c44ab039d599d357fdbc1224c21ed24ea6
treef61d2138ffc77a40036a64edb0c53ca013733130
parentab7787f1f8aa47a2f7482f963e42c8e1e9a9fe52
WebsiteDataStore should clean up its storage in the network process when destroyed.
<https://webkit.org/b/147349>
<rdar://problem/21838764>

Reviewed by Darin Adler.

Have ~WebsiteDataStore() send a DestroyPrivateBrowsingSession message to all networking processes
for ephemeral sessions. This plugs a NetworkStorageSession leak that could retain a large
CFNetwork object graph.

This complements r187115 which did the same for network process storage owned by
API::Session objects.

* UIProcess/WebsiteData/WebsiteDataStore.cpp:
(WebKit::WebsiteDataStore::~WebsiteDataStore):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@187478 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebKit2/ChangeLog
Source/WebKit2/UIProcess/WebsiteData/WebsiteDataStore.cpp