Add and remove cookie partition accordingly in intermediary redirect requests
[WebKit-https.git] / Source / WebKit / ChangeLog
index 984e368..fd00148 100644 (file)
@@ -1,3 +1,45 @@
+2017-10-17  John Wilander  <wilander@apple.com>
+
+        Add and remove cookie partition accordingly in intermediary redirect requests
+        https://bugs.webkit.org/show_bug.cgi?id=178369
+        <rdar://problem/34467603>
+
+        Reviewed by Brent Fulgham.
+
+        * NetworkProcess/cocoa/NetworkDataTaskCocoa.mm:
+        (WebKit::shouldChangePartition):
+            Convenience function. Comment documents the logic.
+        (WebKit::NetworkDataTaskCocoa::willPerformHTTPRedirection):
+            Now adds and removes cookie partition based on the
+            redirect-to URL's domain.
+        * WebProcess/InjectedBundle/API/c/WKBundle.cpp:
+        (WKBundleResourceLoadStatisticsNotifyObserver):
+            Test infrastructure.
+        * WebProcess/InjectedBundle/API/c/WKBundlePrivate.h:
+
+2017-10-17  Youenn Fablet  <youenn@apple.com>
+
+        Cache API implementation should be able to compute storage size for WebKit client applications.
+        https://bugs.webkit.org/show_bug.cgi?id=178350
+
+        Reviewed by Chris Dumez.
+
+        When gathering data from DOM Cache, we compute the size as follows:
+        - If Caches object is not persistent, size is zero
+        - If Caches object is persistent, we use the size computed by NetworkCache::Storage. 
+        Covered by updated tests.
+
+        * NetworkProcess/cache/CacheStorageEngine.cpp:
+        (WebKit::CacheStorage::ReadOriginsTaskCounter::create):
+        (WebKit::CacheStorage::ReadOriginsTaskCounter::addOrigin):
+        (WebKit::CacheStorage::Engine::fetchEntries):
+        * NetworkProcess/cache/CacheStorageEngineCaches.cpp:
+        (WebKit::CacheStorage::Caches::storageSize const):
+        * NetworkProcess/cache/CacheStorageEngineCaches.h:
+        * UIProcess/API/C/WKWebsiteDataStoreRef.cpp:
+        (WKWebsiteDataStoreGetFetchCacheSizeForOrigin):
+        * UIProcess/API/C/WKWebsiteDataStoreRef.h:
+
 2017-10-17  Keith Miller  <keith_miller@apple.com>
 
         Change WebCore sources to work with unified source builds