Skip to content
Permalink
Browse files
Configure serviceWorkerRegistrationDirectory on the web site data sto…
…re and move it to a Caches subfolder as a default

https://bugs.webkit.org/show_bug.cgi?id=182403
<rdar://problem/36673358>

Patch by Youenn Fablet <youenn@apple.com> on 2018-02-02
Reviewed by Alex Christensen.

* UIProcess/WebProcessPool.cpp:
(WebKit::legacyWebsiteDataStoreConfiguration): Setting serviceWorkerRegistrationDirectory for legacy stores.

Canonical link: https://commits.webkit.org/198248@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@228033 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  • Loading branch information
youennf authored and webkit-commit-queue committed Feb 3, 2018
1 parent e5e8035 commit 759f6c1acc7dbafc9f4c5b7aec21d3a6c7e2680c
Showing 2 changed files with 12 additions and 0 deletions.
@@ -1,3 +1,14 @@
2018-02-02 Youenn Fablet <youenn@apple.com>

Configure serviceWorkerRegistrationDirectory on the web site data store and move it to a Caches subfolder as a default
https://bugs.webkit.org/show_bug.cgi?id=182403
<rdar://problem/36673358>

Reviewed by Alex Christensen.

* UIProcess/WebProcessPool.cpp:
(WebKit::legacyWebsiteDataStoreConfiguration): Setting serviceWorkerRegistrationDirectory for legacy stores.

2018-02-02 Youenn Fablet <youenn@apple.com>

Clearing all service worker registrations should wait for importing service worker registration to finish
@@ -196,6 +196,7 @@ static WebsiteDataStore::Configuration legacyWebsiteDataStoreConfiguration(API::
WebsiteDataStore::Configuration configuration;

configuration.cacheStorageDirectory = API::WebsiteDataStore::defaultCacheStorageDirectory();
configuration.serviceWorkerRegistrationDirectory = API::WebsiteDataStore::defaultServiceWorkerRegistrationDirectory();
configuration.localStorageDirectory = processPoolConfiguration.localStorageDirectory();
configuration.webSQLDatabaseDirectory = processPoolConfiguration.webSQLDatabaseDirectory();
configuration.applicationCacheDirectory = processPoolConfiguration.applicationCacheDirectory();

0 comments on commit 759f6c1

Please sign in to comment.