Title: [199204] trunk/Source/WebKit2
- Revision
- 199204
- Author
- [email protected]
- Date
- 2016-04-07 17:19:45 -0700 (Thu, 07 Apr 2016)
Log Message
Clearing the application cache doesn't work.
https://bugs.webkit.org/show_bug.cgi?id=156354
rdar://problem/22369239
Patch by Jeremy Jones <[email protected]> on 2016-04-07
Reviewed by Brady Eidson.
Use the correct "ApplicationCache" directory.
Delete the caches, not just the entries.
* UIProcess/WebsiteData/WebsiteDataStore.cpp:
(WebKit::WebsiteDataStore::fetchData):
(WebKit::WebsiteDataStore::removeData):
Modified Paths
Diff
Modified: trunk/Source/WebKit2/ChangeLog (199203 => 199204)
--- trunk/Source/WebKit2/ChangeLog 2016-04-08 00:10:20 UTC (rev 199203)
+++ trunk/Source/WebKit2/ChangeLog 2016-04-08 00:19:45 UTC (rev 199204)
@@ -1,3 +1,18 @@
+2016-04-07 Jeremy Jones <[email protected]>
+
+ Clearing the application cache doesn't work.
+ https://bugs.webkit.org/show_bug.cgi?id=156354
+ rdar://problem/22369239
+
+ Reviewed by Brady Eidson.
+
+ Use the correct "ApplicationCache" directory.
+ Delete the caches, not just the entries.
+
+ * UIProcess/WebsiteData/WebsiteDataStore.cpp:
+ (WebKit::WebsiteDataStore::fetchData):
+ (WebKit::WebsiteDataStore::removeData):
+
2016-04-07 Brian Burg <[email protected]>
Web Automation: implement Automation.addSingleCookie
Modified: trunk/Source/WebKit2/UIProcess/WebsiteData/WebsiteDataStore.cpp (199203 => 199204)
--- trunk/Source/WebKit2/UIProcess/WebsiteData/WebsiteDataStore.cpp 2016-04-08 00:10:20 UTC (rev 199203)
+++ trunk/Source/WebKit2/UIProcess/WebsiteData/WebsiteDataStore.cpp 2016-04-08 00:19:45 UTC (rev 199204)
@@ -336,7 +336,7 @@
callbackAggregator->addPendingCallback();
m_queue->dispatch([fetchOptions, applicationCacheDirectory, callbackAggregator] {
- auto storage = WebCore::ApplicationCacheStorage::create(applicationCacheDirectory.string(), "Files");
+ auto storage = WebCore::ApplicationCacheStorage::create(applicationCacheDirectory.string(), "ApplicationCache");
WebsiteData* websiteData = new WebsiteData;
@@ -600,9 +600,9 @@
callbackAggregator->addPendingCallback();
m_queue->dispatch([applicationCacheDirectory, callbackAggregator] {
- auto storage = WebCore::ApplicationCacheStorage::create(applicationCacheDirectory.string(), "Files");
+ auto storage = WebCore::ApplicationCacheStorage::create(applicationCacheDirectory.string(), "ApplicationCache");
- storage->deleteAllEntries();
+ storage->deleteAllCaches();
WTF::RunLoop::main().dispatch([callbackAggregator] {
callbackAggregator->removePendingCallback();
@@ -839,7 +839,7 @@
callbackAggregator->addPendingCallback();
m_queue->dispatch([origins, applicationCacheDirectory, callbackAggregator] {
- auto storage = WebCore::ApplicationCacheStorage::create(applicationCacheDirectory.string(), "Files");
+ auto storage = WebCore::ApplicationCacheStorage::create(applicationCacheDirectory.string(), "ApplicationCache");
for (const auto& origin : origins)
storage->deleteCacheForOrigin(*origin);
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes