RESOLVED FIXED 230101
Add stub for File System Access API
https://bugs.webkit.org/show_bug.cgi?id=230101
Summary Add stub for File System Access API
Sihui Liu
Reported 2021-09-09 09:00:38 PDT
...
Attachments
Patch (68.77 KB, patch)
2021-09-09 09:03 PDT, Sihui Liu
ews-feeder: commit-queue-
Patch (72.39 KB, patch)
2021-09-09 09:18 PDT, Sihui Liu
no flags
Patch (72.90 KB, patch)
2021-09-09 09:36 PDT, Sihui Liu
ews-feeder: commit-queue-
Patch (72.93 KB, patch)
2021-09-09 09:58 PDT, Sihui Liu
no flags
Patch (161.87 KB, patch)
2021-09-09 15:50 PDT, Sihui Liu
no flags
Patch for landing (150.69 KB, patch)
2021-09-13 10:50 PDT, Sihui Liu
no flags
Sihui Liu
Comment 1 2021-09-09 09:03:24 PDT
Sihui Liu
Comment 2 2021-09-09 09:18:29 PDT
Sihui Liu
Comment 3 2021-09-09 09:36:34 PDT
Sihui Liu
Comment 4 2021-09-09 09:58:23 PDT
Sihui Liu
Comment 5 2021-09-09 15:50:17 PDT
youenn fablet
Comment 6 2021-09-10 06:13:28 PDT
Comment on attachment 437795 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=437795&action=review > Source/WebCore/Modules/filesystemaccess/FileSystemDirectoryHandle.h:56 > + FileSystemDirectoryHandle(String&&); explicit. > Source/WebCore/Modules/filesystemaccess/FileSystemFileHandle.h:37 > + struct CreateWritableOptions { Let's add it when needed. > Source/WebCore/Modules/filesystemaccess/FileSystemFileHandle.h:45 > + FileSystemFileHandle(String&&); explicit. > Source/WebCore/Modules/filesystemaccess/FileSystemHandle.h:49 > + FileSystemHandle(Kind, String&& name); Since it is refcounted, it is better to move the constructor to protected. > Source/WebCore/Modules/filesystemaccess/FileSystemHandle.idl:32 > + EnabledBySetting=FileSystemAccess I am not sure this has any effect on dictionaries. > Source/WebCore/Modules/filesystemaccess/FileSystemHandle.idl:47 > + Promise<PermissionState> requestPermission(optional FileSystemHandlePermissionDescriptor descriptor); Are we sure we will quickly implement these two? If not, it might be better to not include them so that feature detection works by just checking that the method is defined. Same questions for other methods. > Source/WebCore/Modules/filesystemaccess/FileSystemPermissionDescriptor.idl:28 > +] dictionary FileSystemPermissionDescriptor : PermissionDescriptor { Let's add this one and related when actually needed, I do not think this is exposed to JS. Ditto for struct FileSystemPermissionDescriptor > Source/WebCore/Modules/filesystemaccess/FileSystemPermissionMode.h:30 > +enum class FileSystemPermissionMode : uint8_t { could be bool I guess
Sihui Liu
Comment 7 2021-09-13 10:50:53 PDT
Created attachment 438054 [details] Patch for landing
Sihui Liu
Comment 8 2021-09-13 10:51:37 PDT
Comment on attachment 437795 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=437795&action=review >> Source/WebCore/Modules/filesystemaccess/FileSystemDirectoryHandle.h:56 >> + FileSystemDirectoryHandle(String&&); > > explicit. Will add. >> Source/WebCore/Modules/filesystemaccess/FileSystemFileHandle.h:37 >> + struct CreateWritableOptions { > > Let's add it when needed. Okay. >> Source/WebCore/Modules/filesystemaccess/FileSystemFileHandle.h:45 >> + FileSystemFileHandle(String&&); > > explicit. Will add. >> Source/WebCore/Modules/filesystemaccess/FileSystemHandle.h:49 >> + FileSystemHandle(Kind, String&& name); > > Since it is refcounted, it is better to move the constructor to protected. Sure. >> Source/WebCore/Modules/filesystemaccess/FileSystemHandle.idl:32 >> + EnabledBySetting=FileSystemAccess > > I am not sure this has any effect on dictionaries. I saw other files using it on dictionary and I checked IDLAttributes.json; but it does seem to have no effect on dictionary according to CodeGenerator if I am reading it correctly >> Source/WebCore/Modules/filesystemaccess/FileSystemHandle.idl:47 >> + Promise<PermissionState> requestPermission(optional FileSystemHandlePermissionDescriptor descriptor); > > Are we sure we will quickly implement these two? > If not, it might be better to not include them so that feature detection works by just checking that the method is defined. > Same questions for other methods. I think we do; but these two may not be implemented very quickly. I will remove these two first. >> Source/WebCore/Modules/filesystemaccess/FileSystemPermissionDescriptor.idl:28 >> +] dictionary FileSystemPermissionDescriptor : PermissionDescriptor { > > Let's add this one and related when actually needed, I do not think this is exposed to JS. > Ditto for struct FileSystemPermissionDescriptor Sure. >> Source/WebCore/Modules/filesystemaccess/FileSystemPermissionMode.h:30 >> +enum class FileSystemPermissionMode : uint8_t { > > could be bool I guess Will remove this file and add when it's needed.
EWS
Comment 9 2021-09-13 14:44:48 PDT
Committed r282361 (241624@main): <https://commits.webkit.org/241624@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 438054 [details].
Radar WebKit Bug Importer
Comment 10 2021-09-22 13:43:16 PDT
Note You need to log in before you can comment on or make changes to this bug.