Diff
Modified: trunk/LayoutTests/ChangeLog (238124 => 238125)
--- trunk/LayoutTests/ChangeLog 2018-11-13 07:35:41 UTC (rev 238124)
+++ trunk/LayoutTests/ChangeLog 2018-11-13 07:41:30 UTC (rev 238125)
@@ -1,3 +1,16 @@
+2018-11-12 Darshan Kadu <[email protected]>
+
+ Implement Cache API support for WPE/GTK
+ https://bugs.webkit.org/show_bug.cgi?id=178316
+
+ Reviewed by Michael Catanzaro.
+
+ Removed the http/wpt/cache-storage/cache-quota.any.html from the TestExpectations which
+ were marked faliure.
+
+ * platform/gtk/TestExpectations:
+ * platform/wpe/TestExpectations:
+
2018-11-12 Devin Rousso <[email protected]>
Web Inspector: Network: show secure certificate details per-request
Modified: trunk/LayoutTests/platform/gtk/TestExpectations (238124 => 238125)
--- trunk/LayoutTests/platform/gtk/TestExpectations 2018-11-13 07:35:41 UTC (rev 238124)
+++ trunk/LayoutTests/platform/gtk/TestExpectations 2018-11-13 07:41:30 UTC (rev 238125)
@@ -1117,9 +1117,6 @@
# This test assumes that color on sliders is not reversed for RTL, so failing is good.
fast/forms/range/input-appearance-range-rtl.html [ ImageOnlyFailure ]
-# Cache storage
-webkit.org/b/178316 http/wpt/cache-storage/cache-quota.any.html [ Failure ]
-
# Service-workers tests that fail, time out or crash.
webkit.org/b/175419 http/tests/workers/service/controller-change.html [ Skip ]
webkit.org/b/175419 http/tests/workers/service/no-page-cache-when-controlled.html [ Skip ]
Modified: trunk/LayoutTests/platform/wpe/TestExpectations (238124 => 238125)
--- trunk/LayoutTests/platform/wpe/TestExpectations 2018-11-13 07:35:41 UTC (rev 238124)
+++ trunk/LayoutTests/platform/wpe/TestExpectations 2018-11-13 07:41:30 UTC (rev 238125)
@@ -493,9 +493,6 @@
http/tests/websocket [ Skip ]
http/tests/xmlhttprequest [ Skip ]
-# Cache storage
-webkit.org/b/178316 http/wpt/cache-storage/cache-quota.any.html [ Skip ]
-
# Service-workers tests that fail, time out or crash.
webkit.org/b/175419 http/tests/workers/service/controller-change.html [ Skip ]
webkit.org/b/175419 http/tests/workers/service/no-page-cache-when-controlled.html [ Skip ]
Modified: trunk/Source/WebKit/ChangeLog (238124 => 238125)
--- trunk/Source/WebKit/ChangeLog 2018-11-13 07:35:41 UTC (rev 238124)
+++ trunk/Source/WebKit/ChangeLog 2018-11-13 07:41:30 UTC (rev 238125)
@@ -1,3 +1,17 @@
+2018-11-12 Darshan Kadu <[email protected]>
+
+ Implement Cache API support for WPE/GTK
+ https://bugs.webkit.org/show_bug.cgi?id=178316
+
+ Reviewed by Michael Catanzaro.
+
+ Added a new API function WKWebsiteDataStoreSetCacheStoragePerOriginQuota which sets the
+ cache limit per origin.
+
+ * UIProcess/API/C/WKWebsiteDataStoreRef.cpp:
+ (WKWebsiteDataStoreSetCacheStoragePerOriginQuota):
+ * UIProcess/API/C/WKWebsiteDataStoreRef.h:
+
2018-11-12 Alex Christensen <[email protected]>
[iOS] Implement safe browsing in WebKit
Modified: trunk/Source/WebKit/UIProcess/API/C/WKWebsiteDataStoreRef.cpp (238124 => 238125)
--- trunk/Source/WebKit/UIProcess/API/C/WKWebsiteDataStoreRef.cpp 2018-11-13 07:35:41 UTC (rev 238124)
+++ trunk/Source/WebKit/UIProcess/API/C/WKWebsiteDataStoreRef.cpp 2018-11-13 07:41:30 UTC (rev 238125)
@@ -571,6 +571,10 @@
WebKit::toImpl(dataStoreRef)->websiteDataStore().setServiceWorkerRegistrationDirectory(WebKit::toImpl(serviceWorkerRegistrationDirectory)->string());
}
+void WKWebsiteDataStoreSetCacheStoragePerOriginQuota(WKWebsiteDataStoreRef dataStoreRef, uint64_t quota)
+{
+ WebKit::toImpl(dataStoreRef)->websiteDataStore().setCacheStoragePerOriginQuota(quota);
+}
void WKWebsiteDataStoreSetWebAuthenticationMockConfiguration(WKWebsiteDataStoreRef dataStoreRef, WKDictionaryRef configurationRef)
{
Modified: trunk/Source/WebKit/UIProcess/API/C/WKWebsiteDataStoreRef.h (238124 => 238125)
--- trunk/Source/WebKit/UIProcess/API/C/WKWebsiteDataStoreRef.h 2018-11-13 07:35:41 UTC (rev 238124)
+++ trunk/Source/WebKit/UIProcess/API/C/WKWebsiteDataStoreRef.h 2018-11-13 07:41:30 UTC (rev 238125)
@@ -114,6 +114,8 @@
WK_EXPORT WKStringRef WKWebsiteDataStoreCopyServiceWorkerRegistrationDirectory(WKWebsiteDataStoreRef dataStoreRef);
WK_EXPORT void WKWebsiteDataStoreSetServiceWorkerRegistrationDirectory(WKWebsiteDataStoreRef dataStoreRef, WKStringRef serviceWorkerRegistrationDirectory);
+WK_EXPORT void WKWebsiteDataStoreSetCacheStoragePerOriginQuota(WKWebsiteDataStoreRef dataStoreRef, uint64_t quota);
+
WK_EXPORT void WKWebsiteDataStoreSetWebAuthenticationMockConfiguration(WKWebsiteDataStoreRef dataStoreRef, WKDictionaryRef configuration);
#ifdef __cplusplus
Modified: trunk/Tools/ChangeLog (238124 => 238125)
--- trunk/Tools/ChangeLog 2018-11-13 07:35:41 UTC (rev 238124)
+++ trunk/Tools/ChangeLog 2018-11-13 07:41:30 UTC (rev 238125)
@@ -1,3 +1,18 @@
+2018-11-12 Darshan Kadu <[email protected]>
+
+ Implement Cache API support for WPE/GTK
+ https://bugs.webkit.org/show_bug.cgi?id=178316
+
+ Reviewed by Michael Catanzaro.
+
+ Called WKWebsiteDataStoreSetCacheStoragePerOriginQuota function to set the cache limit to 400 * 1200
+ on all the platforms in TestController.cpp. Also, removed the setCacheStoragePerOriginQuota call from TestControllerCocoa.mm
+
+ * WebKitTestRunner/TestController.cpp:
+ (WTR::TestController::generatePageConfiguration):
+ * WebKitTestRunner/cocoa/TestControllerCocoa.mm:
+ (WTR::initializeWebViewConfiguration):
+
2018-11-12 Christopher Reid <[email protected]>
[Curl] Reject entire cookie if the domain fails a tailmatch.
Modified: trunk/Tools/WebKitTestRunner/TestController.cpp (238124 => 238125)
--- trunk/Tools/WebKitTestRunner/TestController.cpp 2018-11-13 07:35:41 UTC (rev 238124)
+++ trunk/Tools/WebKitTestRunner/TestController.cpp 2018-11-13 07:41:30 UTC (rev 238125)
@@ -483,6 +483,9 @@
WKContextUseTestingNetworkSession(m_context.get());
WKContextSetCacheModel(m_context.get(), kWKCacheModelDocumentBrowser);
+ auto* websiteDataStore = WKContextGetWebsiteDataStore(m_context.get());
+ WKWebsiteDataStoreSetCacheStoragePerOriginQuota(websiteDataStore, 400 * 1024);
+
platformInitializeContext();
WKContextInjectedBundleClientV1 injectedBundleClient = {
Modified: trunk/Tools/WebKitTestRunner/cocoa/TestControllerCocoa.mm (238124 => 238125)
--- trunk/Tools/WebKitTestRunner/cocoa/TestControllerCocoa.mm 2018-11-13 07:35:41 UTC (rev 238124)
+++ trunk/Tools/WebKitTestRunner/cocoa/TestControllerCocoa.mm 2018-11-13 07:41:30 UTC (rev 238125)
@@ -69,7 +69,6 @@
WKCookieManagerSetStorageAccessAPIEnabled(WKContextGetCookieManager(context), true);
WKWebsiteDataStore* poolWebsiteDataStore = (__bridge WKWebsiteDataStore *)WKContextGetWebsiteDataStore((__bridge WKContextRef)globalWebViewConfiguration.processPool);
- [poolWebsiteDataStore _setCacheStoragePerOriginQuota: 400 * 1024];
if (libraryPath) {
String cacheStorageDirectory = String(libraryPath) + '/' + "CacheStorage";
[poolWebsiteDataStore _setCacheStorageDirectory: cacheStorageDirectory];