Title: [203061] trunk/Source/WebKit2
Revision
203061
Author
[email protected]
Date
2016-07-11 08:25:37 -0700 (Mon, 11 Jul 2016)

Log Message

Update stable cache version in NetworkCache::Storage::deleteOldVersions()
https://bugs.webkit.org/show_bug.cgi?id=159618
rdar://problem/26715745

Reviewed by Chris Dumez.

NetworkCache::Storage::deleteOldVersions() keeps the previous shipped cache version (4) for Mac around so
development WebKit doesn’t clobber system Safari cache. Update this to the current version so old caches
go away in customer systems.

* NetworkProcess/cache/NetworkCacheStorage.cpp:
(WebKit::NetworkCache::Storage::deleteOldVersions):
* NetworkProcess/cache/NetworkCacheStorage.h:

    Move lastStableVersion to header next to the current version.

Modified Paths

Diff

Modified: trunk/Source/WebKit2/ChangeLog (203060 => 203061)


--- trunk/Source/WebKit2/ChangeLog	2016-07-11 15:08:46 UTC (rev 203060)
+++ trunk/Source/WebKit2/ChangeLog	2016-07-11 15:25:37 UTC (rev 203061)
@@ -1,3 +1,21 @@
+2016-07-11  Antti Koivisto  <[email protected]>
+
+        Update stable cache version in NetworkCache::Storage::deleteOldVersions()
+        https://bugs.webkit.org/show_bug.cgi?id=159618
+        rdar://problem/26715745
+
+        Reviewed by Chris Dumez.
+
+        NetworkCache::Storage::deleteOldVersions() keeps the previous shipped cache version (4) for Mac around so
+        development WebKit doesn’t clobber system Safari cache. Update this to the current version so old caches
+        go away in customer systems.
+
+        * NetworkProcess/cache/NetworkCacheStorage.cpp:
+        (WebKit::NetworkCache::Storage::deleteOldVersions):
+        * NetworkProcess/cache/NetworkCacheStorage.h:
+
+            Move lastStableVersion to header next to the current version.
+
 2016-07-10  Beth Dakin  <[email protected]>
 
         Update mediaIcon.pdf

Modified: trunk/Source/WebKit2/NetworkProcess/cache/NetworkCacheStorage.cpp (203060 => 203061)


--- trunk/Source/WebKit2/NetworkProcess/cache/NetworkCacheStorage.cpp	2016-07-11 15:08:46 UTC (rev 203060)
+++ trunk/Source/WebKit2/NetworkProcess/cache/NetworkCacheStorage.cpp	2016-07-11 15:25:37 UTC (rev 203061)
@@ -1018,10 +1018,7 @@
                 return;
             if (directoryVersion >= version)
                 return;
-
 #if PLATFORM(MAC)
-            // Allow the last stable version of the cache to co-exist with the latest development one on Mac.
-            const unsigned lastStableVersion = 4;
             if (directoryVersion == lastStableVersion)
                 return;
 #endif

Modified: trunk/Source/WebKit2/NetworkProcess/cache/NetworkCacheStorage.h (203060 => 203061)


--- trunk/Source/WebKit2/NetworkProcess/cache/NetworkCacheStorage.h	2016-07-11 15:08:46 UTC (rev 203060)
+++ trunk/Source/WebKit2/NetworkProcess/cache/NetworkCacheStorage.h	2016-07-11 15:25:37 UTC (rev 203061)
@@ -88,6 +88,10 @@
     size_t approximateSize() const;
 
     static const unsigned version = 8;
+#if PLATFORM(MAC)
+    /// Allow the last stable version of the cache to co-exist with the latest development one.
+    static const unsigned lastStableVersion = 8;
+#endif
 
     String basePath() const;
     String versionPath() const;
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to