Handle caches in WebsiteDataStore
authorandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 13 Dec 2014 01:06:56 +0000 (01:06 +0000)
committerandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 13 Dec 2014 01:06:56 +0000 (01:06 +0000)
https://bugs.webkit.org/show_bug.cgi?id=139607
<rdar://problem/19107614>

Reviewed by Sam Weinig.

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

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

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

index 09d9695..790cbfc 100644 (file)
@@ -1,3 +1,14 @@
+2014-12-12  Anders Carlsson  <andersca@apple.com>
+
+        Handle caches in WebsiteDataStore
+        https://bugs.webkit.org/show_bug.cgi?id=139607
+        <rdar://problem/19107614>
+
+        Reviewed by Sam Weinig.
+
+        * UIProcess/WebsiteData/WebsiteDataStore.cpp:
+        (WebKit::computeNetworkProcessAccessType):
+
 2014-12-12  Enrica Casucci  <enrica@apple.com>
 
         [iOS] Predictions are not updated when using navigation buttons.
index 39b8a03..26c696e 100644 (file)
@@ -104,7 +104,8 @@ static ProcessAccessType computeNetworkProcessAccessType(WebsiteDataTypes dataTy
             processAccessType = std::max(processAccessType, ProcessAccessType::Launch);
     }
 
-    // FIXME: Handle caches here too.
+    if (dataTypes & WebsiteDataTypeDiskCache && !isNonPersistantStore)
+        processAccessType = std::max(processAccessType, ProcessAccessType::Launch);
 
     return processAccessType;
 }