Title: [221623] trunk
Revision
221623
Author
commit-qu...@webkit.org
Date
2017-09-05 10:48:42 -0700 (Tue, 05 Sep 2017)

Log Message

WebKitTestRunner should set the cache storage directory path
https://bugs.webkit.org/show_bug.cgi?id=176373

Patch by Youenn Fablet <you...@apple.com> on 2017-09-05
Reviewed by Chris Dumez.

Source/WebKit:

* UIProcess/API/C/WKContextConfigurationRef.cpp:
(WKContextConfigurationCopyCacheStorageDirectory):
(WKContextConfigurationSetCacheStorageDirectory):
* UIProcess/API/C/WKContextConfigurationRef.h:

Tools:

* WebKitTestRunner/TestController.cpp:
(WTR::TestController::generateContextConfiguration const):

Modified Paths

Diff

Modified: trunk/Source/WebKit/ChangeLog (221622 => 221623)


--- trunk/Source/WebKit/ChangeLog	2017-09-05 17:43:51 UTC (rev 221622)
+++ trunk/Source/WebKit/ChangeLog	2017-09-05 17:48:42 UTC (rev 221623)
@@ -1,3 +1,15 @@
+2017-09-05  Youenn Fablet  <you...@apple.com>
+
+        WebKitTestRunner should set the cache storage directory path
+        https://bugs.webkit.org/show_bug.cgi?id=176373
+
+        Reviewed by Chris Dumez.
+
+        * UIProcess/API/C/WKContextConfigurationRef.cpp:
+        (WKContextConfigurationCopyCacheStorageDirectory):
+        (WKContextConfigurationSetCacheStorageDirectory):
+        * UIProcess/API/C/WKContextConfigurationRef.h:
+
 2017-09-05  Alex Christensen  <achristen...@webkit.org>
 
         Add WKUIDelegatePrivate equivalent of WKPageUIClient's unavailablePluginButtonClicked

Modified: trunk/Source/WebKit/UIProcess/API/C/WKContextConfigurationRef.cpp (221622 => 221623)


--- trunk/Source/WebKit/UIProcess/API/C/WKContextConfigurationRef.cpp	2017-09-05 17:43:51 UTC (rev 221622)
+++ trunk/Source/WebKit/UIProcess/API/C/WKContextConfigurationRef.cpp	2017-09-05 17:48:42 UTC (rev 221623)
@@ -58,6 +58,16 @@
     toImpl(configuration)->setDiskCacheDirectory(toImpl(diskCacheDirectory)->string());
 }
 
+WKStringRef WKContextConfigurationCopyCacheStorageDirectory(WKContextConfigurationRef configuration)
+{
+    return toCopiedAPI(toImpl(configuration)->cacheStorageDirectory());
+}
+
+void WKContextConfigurationSetCacheStorageDirectory(WKContextConfigurationRef configuration, WKStringRef cacheStorageDirectory)
+{
+    toImpl(configuration)->setCacheStorageDirectory(toImpl(cacheStorageDirectory)->string());
+}
+
 WKStringRef WKContextConfigurationCopyApplicationCacheDirectory(WKContextConfigurationRef configuration)
 {
     return toCopiedAPI(toImpl(configuration)->applicationCacheDirectory());

Modified: trunk/Source/WebKit/UIProcess/API/C/WKContextConfigurationRef.h (221622 => 221623)


--- trunk/Source/WebKit/UIProcess/API/C/WKContextConfigurationRef.h	2017-09-05 17:43:51 UTC (rev 221622)
+++ trunk/Source/WebKit/UIProcess/API/C/WKContextConfigurationRef.h	2017-09-05 17:48:42 UTC (rev 221623)
@@ -41,6 +41,9 @@
 WK_EXPORT WKStringRef WKContextConfigurationCopyDiskCacheDirectory(WKContextConfigurationRef configuration);
 WK_EXPORT void WKContextConfigurationSetDiskCacheDirectory(WKContextConfigurationRef configuration, WKStringRef diskCacheDirectory);
 
+WK_EXPORT WKStringRef WKContextConfigurationCopyCacheStorageDirectory(WKContextConfigurationRef configuration);
+WK_EXPORT void WKContextConfigurationSetCacheStorageDirectory(WKContextConfigurationRef configuration, WKStringRef cacheStorageDirectory);
+
 WK_EXPORT WKStringRef WKContextConfigurationCopyIndexedDBDatabaseDirectory(WKContextConfigurationRef configuration);
 WK_EXPORT void WKContextConfigurationSetIndexedDBDatabaseDirectory(WKContextConfigurationRef configuration, WKStringRef indexedDBDatabaseDirectory);
 

Modified: trunk/Tools/ChangeLog (221622 => 221623)


--- trunk/Tools/ChangeLog	2017-09-05 17:43:51 UTC (rev 221622)
+++ trunk/Tools/ChangeLog	2017-09-05 17:48:42 UTC (rev 221623)
@@ -1,3 +1,13 @@
+2017-09-05  Youenn Fablet  <you...@apple.com>
+
+        WebKitTestRunner should set the cache storage directory path
+        https://bugs.webkit.org/show_bug.cgi?id=176373
+
+        Reviewed by Chris Dumez.
+
+        * WebKitTestRunner/TestController.cpp:
+        (WTR::TestController::generateContextConfiguration const):
+
 2017-09-05  Joseph Pecoraro  <pecor...@apple.com>
 
         test262: Completion values for control flow do not match the spec

Modified: trunk/Tools/WebKitTestRunner/TestController.cpp (221622 => 221623)


--- trunk/Tools/WebKitTestRunner/TestController.cpp	2017-09-05 17:43:51 UTC (rev 221622)
+++ trunk/Tools/WebKitTestRunner/TestController.cpp	2017-09-05 17:48:42 UTC (rev 221623)
@@ -407,6 +407,7 @@
 
         WKContextConfigurationSetApplicationCacheDirectory(configuration.get(), toWK(temporaryFolder + separator + "ApplicationCache").get());
         WKContextConfigurationSetDiskCacheDirectory(configuration.get(), toWK(temporaryFolder + separator + "Cache").get());
+        WKContextConfigurationSetCacheStorageDirectory(configuration.get(), toWK(temporaryFolder + separator + "CacheStorage").get());
         WKContextConfigurationSetIndexedDBDatabaseDirectory(configuration.get(), toWK(temporaryFolder + separator + "Databases" + separator + "IndexedDB").get());
         WKContextConfigurationSetLocalStorageDirectory(configuration.get(), toWK(temporaryFolder + separator + "LocalStorage").get());
         WKContextConfigurationSetWebSQLDatabaseDirectory(configuration.get(), toWK(temporaryFolder + separator + "Databases" + separator + "WebSQL").get());
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to