Add way to dump cache meta data to file
authorantti@apple.com <antti@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 2 Mar 2015 23:52:06 +0000 (23:52 +0000)
committerantti@apple.com <antti@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 2 Mar 2015 23:52:06 +0000 (23:52 +0000)
https://bugs.webkit.org/show_bug.cgi?id=142183

Add a missing return so we don't try to decode a null entry.

* NetworkProcess/cache/NetworkCache.cpp:
(WebKit::NetworkCache::dumpContentsToFile):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@180905 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebKit2/ChangeLog
Source/WebKit2/NetworkProcess/cache/NetworkCache.cpp

index 691569d..18fd563 100644 (file)
@@ -1,3 +1,13 @@
+2015-03-02  Antti Koivisto  <antti@apple.com>
+
+        Add way to dump cache meta data to file
+        https://bugs.webkit.org/show_bug.cgi?id=142183
+
+        Add a missing return so we don't try to decode a null entry.
+
+        * NetworkProcess/cache/NetworkCache.cpp:
+        (WebKit::NetworkCache::dumpContentsToFile):
+
 2015-03-02  Anders Carlsson  <andersca@apple.com>
 
         Return disk cache entries from the new disk cache
index 48d8916..f0fe3c4 100644 (file)
@@ -444,6 +444,7 @@ void NetworkCache::dumpContentsToFile()
             WebCore::writeToFile(dumpFileHandle, "{}\n]\n", 5);
             auto handle = dumpFileHandle;
             WebCore::closeFile(handle);
+            return;
         }
         StringBuilder json;
         if (!entryAsJSON(json, key, *entry))