This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse the repository at this point in the history
Ensure all ServiceWorkerRegistration files and directories are remove…
…d when registrations are cleared https://bugs.webkit.org/show_bug.cgi?id=257857 rdar://110475749 Reviewed by Youenn Fablet. This patch ensures -shm file, -wal file and empty Script folder are deleted when clearing ServiceWorker registrations, so that ServiceWorker directory can become empty and also get deleted. Test: WKWebsiteDataStore.RemoveServiceWorkerData * Source/WebCore/workers/service/server/SWRegistrationDatabase.cpp: (WebCore::scriptDirectoryPath): (WebCore::scriptVersionDirectoryPath): (WebCore::SWRegistrationDatabase::scriptStorage): (WebCore::SWRegistrationDatabase::importRegistrations): (WebCore::SWRegistrationDatabase::clearAllRegistrations): * Tools/TestWebKitAPI/Tests/WebKitCocoa/WebsiteDataStoreCustomPaths.mm: Canonical link: https://commits.webkit.org/264998@main
- Loading branch information
Showing 2 changed files with 70 additions and 4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters