Title: [225646] trunk/Source/WebKit
Revision
225646
Author
[email protected]
Date
2017-12-07 15:17:56 -0800 (Thu, 07 Dec 2017)

Log Message

CacheStorage Cache should not remove any disk entry when clearing its memory representation
https://bugs.webkit.org/show_bug.cgi?id=180546

Patch by Youenn Fablet <[email protected]> on 2017-12-07
Reviewed by Brady Eidson.

* NetworkProcess/cache/CacheStorageEngineCache.cpp:
(WebKit::CacheStorage::Cache::clearMemoryRepresentation):

Modified Paths

Diff

Modified: trunk/Source/WebKit/ChangeLog (225645 => 225646)


--- trunk/Source/WebKit/ChangeLog	2017-12-07 21:59:48 UTC (rev 225645)
+++ trunk/Source/WebKit/ChangeLog	2017-12-07 23:17:56 UTC (rev 225646)
@@ -1,3 +1,13 @@
+2017-12-07  Youenn Fablet  <[email protected]>
+
+        CacheStorage Cache should not remove any disk entry when clearing its memory representation
+        https://bugs.webkit.org/show_bug.cgi?id=180546
+
+        Reviewed by Brady Eidson.
+
+        * NetworkProcess/cache/CacheStorageEngineCache.cpp:
+        (WebKit::CacheStorage::Cache::clearMemoryRepresentation):
+
 2017-12-07  Myles C. Maxfield  <[email protected]>
 
         [Cocoa] Add SPI to disallow user-installed fonts

Modified: trunk/Source/WebKit/NetworkProcess/cache/CacheStorageEngineCache.cpp (225645 => 225646)


--- trunk/Source/WebKit/NetworkProcess/cache/CacheStorageEngineCache.cpp	2017-12-07 21:59:48 UTC (rev 225645)
+++ trunk/Source/WebKit/NetworkProcess/cache/CacheStorageEngineCache.cpp	2017-12-07 23:17:56 UTC (rev 225646)
@@ -121,11 +121,6 @@
 
 void Cache::clearMemoryRepresentation()
 {
-    for (auto& records : m_records.values()) {
-        for (auto& record : records)
-            removeRecordFromDisk(record);
-    }
-
     m_records = { };
     m_nextRecordIdentifier = 0;
     m_state = State::Uninitialized;
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to