-
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.
Create IndexedDB version directory in network process
https://bugs.webkit.org/show_bug.cgi?id=270192 rdar://123725258 Reviewed by Geoffrey Garen and Chris Dumez. We currently create a v0 directory under IndexedDB root directory on main thread of UI process. This patch moves that to the storage queue in network process to avoid blocking UI process. Also, instead of creating a symlink that points to the root directory, we create an actual directory and move files into it, because the version upgrade was shipped over 4 years ago and most data should already be migrated to v1 directory. We don't have to keep the circular symlink now. This patch also removes the v0 directory if it is not needed. This change is covered by existing IndexedDB API tests (e.g IndexedDB.IndexedDBFileNameV0) as they are using different versions of data. * Source/WebKit/NetworkProcess/storage/IDBStorageManager.cpp: (WebKit::IDBStorageManager::createVersionDirectoryIfNeeded): * Source/WebKit/NetworkProcess/storage/IDBStorageManager.h: * Source/WebKit/NetworkProcess/storage/NetworkStorageManager.cpp: (WebKit::NetworkStorageManager::NetworkStorageManager): * Source/WebKit/UIProcess/Network/NetworkProcessProxy.cpp: (WebKit::NetworkProcessProxy::addSession): (WebKit::NetworkProcessProxy::createSymLinkForFileUpgrade): Deleted. * Source/WebKit/UIProcess/Network/NetworkProcessProxy.h: Canonical link: https://commits.webkit.org/275555@main
- Loading branch information
Showing
5 changed files
with
52 additions
and
16 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
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