Pass network cache directory in WebsiteDataStore::parameters() for non-Cocoa platforms.
authoremilio@crisal.io <emilio@crisal.io@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 17 Oct 2019 02:42:29 +0000 (02:42 +0000)
committeremilio@crisal.io <emilio@crisal.io@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 17 Oct 2019 02:42:29 +0000 (02:42 +0000)
https://bugs.webkit.org/show_bug.cgi?id=203043

This was causing various errors in the network process that were
visible in debug builds.

Reviewed by Alex Christensen.

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

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

Source/WebKit/ChangeLog
Source/WebKit/UIProcess/WebsiteData/WebsiteDataStore.cpp

index 09451a2..24a12d0 100644 (file)
@@ -1,3 +1,16 @@
+2019-10-16  Emilio Cobos Ãlvarez  <emilio@crisal.io>
+
+        Pass network cache directory in WebsiteDataStore::parameters() for non-Cocoa platforms.
+        https://bugs.webkit.org/show_bug.cgi?id=203043
+
+        This was causing various errors in the network process that were
+        visible in debug builds.
+
+        Reviewed by Alex Christensen.
+
+        * UIProcess/WebsiteData/WebsiteDataStore.cpp:
+        (WebKit::WebsiteDataStore::parameters):
+
 2019-10-16  Chris Dumez  <cdumez@apple.com>
 
         Rename PageCache to BackForwardCache
index 14b60ae..15dcab2 100644 (file)
@@ -2083,6 +2083,7 @@ WebsiteDataStoreParameters WebsiteDataStore::parameters()
 
     parameters.perOriginStorageQuota = perOriginStorageQuota();
     parameters.perThirdPartyOriginStorageQuota = perThirdPartyOriginStorageQuota();
+    parameters.networkSessionParameters.networkCacheDirectory = resolvedNetworkCacheDirectory();
 
     platformSetNetworkParameters(parameters);