RESOLVED FIXED 238169
Add logging for LocalStorage and IndexedDB data migration
https://bugs.webkit.org/show_bug.cgi?id=238169
Summary Add logging for LocalStorage and IndexedDB data migration
Sihui Liu
Reported 2022-03-21 16:58:57 PDT
...
Attachments
Patch (9.69 KB, patch)
2022-03-21 17:01 PDT, Sihui Liu
no flags
Patch (9.71 KB, patch)
2022-03-23 14:57 PDT, Sihui Liu
no flags
Patch for landing (9.79 KB, patch)
2022-03-23 21:42 PDT, Sihui Liu
no flags
Sihui Liu
Comment 1 2022-03-21 17:01:12 PDT
Chris Dumez
Comment 2 2022-03-23 14:38:36 PDT
Comment on attachment 455303 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=455303&action=review > Source/WebCore/ChangeLog:3 > + Add loggings for LocalStorage and IndexedDB data migration loggings -> logging > Source/WebCore/platform/sql/SQLiteFileSystem.cpp:98 > + allMoved |= FileSystem::moveFile(makeString(oldFilePath, suffix), makeString(newFilePath, suffix)); This doesn't look right to me? Shouldn't allMoved be initialized to false and the operator be &| here? As it stands, I think this function will always return true.
Sihui Liu
Comment 3 2022-03-23 14:57:39 PDT
Sihui Liu
Comment 4 2022-03-23 14:58:09 PDT
Comment on attachment 455303 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=455303&action=review >> Source/WebCore/platform/sql/SQLiteFileSystem.cpp:98 >> + allMoved |= FileSystem::moveFile(makeString(oldFilePath, suffix), makeString(newFilePath, suffix)); > > This doesn't look right to me? > > Shouldn't allMoved be initialized to false and the operator be &| here? > > As it stands, I think this function will always return true. Yes, it should be &! Updated.
Chris Dumez
Comment 5 2022-03-23 15:34:21 PDT
Comment on attachment 455563 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=455563&action=review r=me > Source/WebKit/NetworkProcess/storage/OriginStorageManager.cpp:358 > + RELEASE_LOG(Storage, "%p - StorageBucket::resolvedLocalStoragePath New path '%s'", this, localStoragePath.utf8().data()); %{public}s if you want to see the path in public builds. Given that the paths do not contain any origin information, I think it's OK. > Source/WebKit/NetworkProcess/storage/OriginStorageManager.cpp:389 > + RELEASE_LOG(Storage, "%p - StorageBucket::resolvedIDBStoragePath New path '%s'", this, idbStoragePath.utf8().data()); %{public}s
Sihui Liu
Comment 6 2022-03-23 21:42:16 PDT
Created attachment 455603 [details] Patch for landing
EWS
Comment 7 2022-03-23 23:26:32 PDT
Committed r291786 (248814@main): <https://commits.webkit.org/248814@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 455603 [details].
Radar WebKit Bug Importer
Comment 8 2022-03-24 00:58:28 PDT
Note You need to log in before you can comment on or make changes to this bug.