Title: [253626] trunk/Source/WebKit
Revision
253626
Author
[email protected]
Date
2019-12-17 06:28:25 -0800 (Tue, 17 Dec 2019)

Log Message

[GTK][WPE] IndexedDB directory set in WebsiteDataManager is ignored
https://bugs.webkit.org/show_bug.cgi?id=205330

Reviewed by Youenn Fablet.

There are two problems here:

  1- WebKitWebsiteDataManager is no longer setting the indexedDB directory to the WebsiteDatastore
     configuration. It seems the code was removed by mistake in r249778 when rolling out r249768.
  2- The WebProcessPool is not considering the primary WebsiteDataStore for indexedDB configuration.

Fixes: /webkit/WebKitWebsiteData/databases
       /webkit/WebKitWebsiteData/configuration

* UIProcess/API/glib/WebKitWebsiteDataManager.cpp:
(webkitWebsiteDataManagerGetDataStore):
* UIProcess/WebProcessPool.cpp:
(WebKit::WebProcessPool::ensureNetworkProcess):

Modified Paths

Diff

Modified: trunk/Source/WebKit/ChangeLog (253625 => 253626)


--- trunk/Source/WebKit/ChangeLog	2019-12-17 14:25:35 UTC (rev 253625)
+++ trunk/Source/WebKit/ChangeLog	2019-12-17 14:28:25 UTC (rev 253626)
@@ -1,3 +1,24 @@
+2019-12-17  Carlos Garcia Campos  <[email protected]>
+
+        [GTK][WPE] IndexedDB directory set in WebsiteDataManager is ignored
+        https://bugs.webkit.org/show_bug.cgi?id=205330
+
+        Reviewed by Youenn Fablet.
+
+        There are two problems here:
+
+          1- WebKitWebsiteDataManager is no longer setting the indexedDB directory to the WebsiteDatastore
+             configuration. It seems the code was removed by mistake in r249778 when rolling out r249768.
+          2- The WebProcessPool is not considering the primary WebsiteDataStore for indexedDB configuration.
+
+        Fixes: /webkit/WebKitWebsiteData/databases
+               /webkit/WebKitWebsiteData/configuration
+
+        * UIProcess/API/glib/WebKitWebsiteDataManager.cpp:
+        (webkitWebsiteDataManagerGetDataStore):
+        * UIProcess/WebProcessPool.cpp:
+        (WebKit::WebProcessPool::ensureNetworkProcess):
+
 2019-12-17  youenn fablet  <[email protected]>
 
         Bump the priority of CacheStorageEngine write operations

Modified: trunk/Source/WebKit/UIProcess/API/glib/WebKitWebsiteDataManager.cpp (253625 => 253626)


--- trunk/Source/WebKit/UIProcess/API/glib/WebKitWebsiteDataManager.cpp	2019-12-17 14:25:35 UTC (rev 253625)
+++ trunk/Source/WebKit/UIProcess/API/glib/WebKitWebsiteDataManager.cpp	2019-12-17 14:28:25 UTC (rev 253626)
@@ -392,6 +392,8 @@
             WebKit::WebsiteDataStore::defaultNetworkCacheDirectory() : FileSystem::pathByAppendingComponent(FileSystem::stringFromFileSystemRepresentation(priv->diskCacheDirectory.get()), networkCacheSubdirectory));
         configuration->setApplicationCacheDirectory(!priv->applicationCacheDirectory ?
             WebKit::WebsiteDataStore::defaultApplicationCacheDirectory() : FileSystem::stringFromFileSystemRepresentation(priv->applicationCacheDirectory.get()));
+        configuration->setIndexedDBDatabaseDirectory(!priv->indexedDBDirectory ?
+            WebKit::WebsiteDataStore::defaultIndexedDBDatabaseDirectory() : FileSystem::stringFromFileSystemRepresentation(priv->indexedDBDirectory.get()));
         configuration->setWebSQLDatabaseDirectory(!priv->webSQLDirectory ?
             WebKit::WebsiteDataStore::defaultWebSQLDatabaseDirectory() : FileSystem::stringFromFileSystemRepresentation(priv->webSQLDirectory.get()));
         configuration->setHSTSStorageDirectory(!priv->hstsCacheDirectory ?

Modified: trunk/Source/WebKit/UIProcess/WebProcessPool.cpp (253625 => 253626)


--- trunk/Source/WebKit/UIProcess/WebProcessPool.cpp	2019-12-17 14:25:35 UTC (rev 253625)
+++ trunk/Source/WebKit/UIProcess/WebProcessPool.cpp	2019-12-17 14:28:25 UTC (rev 253626)
@@ -534,7 +534,9 @@
     // *********
     // IMPORTANT: Do not change the directory structure for indexed databases on disk without first consulting a reviewer from Apple (<rdar://problem/17454712>)
     // *********
-    if (WebKit::WebsiteDataStore::defaultDataStoreExists())
+    if (m_websiteDataStore)
+        parameters.defaultDataStoreParameters.indexedDatabaseDirectory = m_websiteDataStore->resolvedIndexedDatabaseDirectory();
+    else if (WebKit::WebsiteDataStore::defaultDataStoreExists())
         parameters.defaultDataStoreParameters.indexedDatabaseDirectory = WebKit::WebsiteDataStore::defaultDataStore()->parameters().indexedDatabaseDirectory;
     
     if (!parameters.defaultDataStoreParameters.indexedDatabaseDirectory.isEmpty()) {
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to