RESOLVED FIXED 237353
Add test coverage for deleting FileSystem data when file is being written
https://bugs.webkit.org/show_bug.cgi?id=237353
Summary Add test coverage for deleting FileSystem data when file is being written
Sihui Liu
Reported 2022-03-01 22:53:44 PST
...
Attachments
Patch (3.91 KB, patch)
2022-03-01 22:58 PST, Sihui Liu
no flags
Patch for landing (3.82 KB, patch)
2022-03-02 09:55 PST, Sihui Liu
no flags
Patch for landing (3.83 KB, patch)
2022-03-02 09:55 PST, Sihui Liu
no flags
Sihui Liu
Comment 1 2022-03-01 22:58:53 PST
Chris Dumez
Comment 2 2022-03-02 09:34:43 PST
Comment on attachment 453572 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=453572&action=review > Tools/ChangeLog:8 > + Verify that file can be removed from disk, and active FileSystemSyncAccessHandle is invalidated in ths case. Typo: "ths" > Tools/TestWebKitAPI/Tests/WebKitCocoa/FileSystemAccess.mm:208 > + RetainPtr<NSData> data; Why declare the variable here? > Tools/TestWebKitAPI/Tests/WebKitCocoa/FileSystemAccess.mm:212 > + data = [NSData dataWithBytes:workerBytes length:strlen(workerBytes)]; RetainPtr data = [NSData dataWithBytes:workerBytes length:strlen(workerBytes)];
Sihui Liu
Comment 3 2022-03-02 09:52:53 PST
Comment on attachment 453572 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=453572&action=review >> Tools/ChangeLog:8 >> + Verify that file can be removed from disk, and active FileSystemSyncAccessHandle is invalidated in ths case. > > Typo: "ths" Will change. >> Tools/TestWebKitAPI/Tests/WebKitCocoa/FileSystemAccess.mm:212 >> + data = [NSData dataWithBytes:workerBytes length:strlen(workerBytes)]; > > RetainPtr data = [NSData dataWithBytes:workerBytes length:strlen(workerBytes)]; Sure, will change.
Sihui Liu
Comment 4 2022-03-02 09:55:20 PST
Created attachment 453628 [details] Patch for landing
Sihui Liu
Comment 5 2022-03-02 09:55:53 PST
Created attachment 453629 [details] Patch for landing
EWS
Comment 6 2022-03-02 10:50:01 PST
Committed r290736 (247983@main): <https://commits.webkit.org/247983@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 453629 [details].
Radar WebKit Bug Importer
Comment 7 2022-03-02 10:51:18 PST
Note You need to log in before you can comment on or make changes to this bug.