-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cherry-pick abde730. rdar://problem/108841865
ServiceWorkerStorageManager should only delete its own files when clearing registrations https://bugs.webkit.org/show_bug.cgi?id=256725 rdar://108841865 Reviewed by Chris Dumez. Existing SPI allows clients to set the same path for different data types, so directory of ServiceWorkerStorageManager might contain files for other types. Therefore, ServiceWorkerStorageManager should not remove the directory when clearing registrations. Test: WKWebsiteDataStoreConfiguration.SameCustomPathForDifferentTypes * Source/WebCore/workers/service/server/SWRegistrationDatabase.cpp: (WebCore::SWRegistrationDatabase::~SWRegistrationDatabase): (WebCore::SWRegistrationDatabase::close): (WebCore::SWRegistrationDatabase::clearAllRegistrations): * Source/WebCore/workers/service/server/SWRegistrationDatabase.h: * Source/WebKit/NetworkProcess/storage/ServiceWorkerStorageManager.cpp: (WebKit::ServiceWorkerStorageManager::clearAllRegistrations): * Tools/TestWebKitAPI/Tests/WebKitCocoa/WebsiteDataStoreCustomPaths.mm: (TEST): Canonical link: https://commits.webkit.org/264036@main Identifier: 263769.33@safari-7616.1.14.10-branch
- Loading branch information
Showing
4 changed files
with
20 additions
and
3 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
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
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
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