From 918adf1de6e987e7cba59f77b1a62fcda3641fdf Mon Sep 17 00:00:00 2001 From: Patrick Brosset Date: Tue, 3 Sep 2024 10:11:27 +0200 Subject: [PATCH] Add file system access API (#1713) --- features/draft/spec/file-system-access.yml | 11 ----------- features/file-system-access.yml | 13 +++++++++++++ .../{draft/spec => }/file-system-access.yml.dist | 0 features/origin-private-file-system.yml | 1 + groups/file-system.yml | 1 + 5 files changed, 15 insertions(+), 11 deletions(-) delete mode 100644 features/draft/spec/file-system-access.yml create mode 100644 features/file-system-access.yml rename features/{draft/spec => }/file-system-access.yml.dist (100%) create mode 100644 groups/file-system.yml diff --git a/features/draft/spec/file-system-access.yml b/features/draft/spec/file-system-access.yml deleted file mode 100644 index ddd9dcc62a1..00000000000 --- a/features/draft/spec/file-system-access.yml +++ /dev/null @@ -1,11 +0,0 @@ -draft_date: 2024-08-28 -name: File System Access -description: TODO -spec: https://wicg.github.io/file-system-access/ -compat_features: - - api.DataTransferItem.getAsFileSystemHandle - - api.FileSystemHandle.queryPermission - - api.FileSystemHandle.requestPermission - - api.Window.showDirectoryPicker - - api.Window.showOpenFilePicker - - api.Window.showSaveFilePicker diff --git a/features/file-system-access.yml b/features/file-system-access.yml new file mode 100644 index 00000000000..33e5ba29d63 --- /dev/null +++ b/features/file-system-access.yml @@ -0,0 +1,13 @@ +name: File system access +description: The `showOpenFilePicker()`, `showDirectoryPicker()`, and `showSaveFilePicker()` methods request access to files and directories on the user's device and returns a handle for reading and writing to them. +spec: https://wicg.github.io/file-system-access/ +caniuse: native-filesystem-api +group: file-system +compat_features: + # api.DataTransferItem.getAsFileSystemHandle is likely to be part of a drag and drop feature, but it can't be in both features at once. See https://github.com/web-platform-dx/web-features/issues/1173 for details + - api.DataTransferItem.getAsFileSystemHandle + - api.FileSystemHandle.queryPermission + - api.FileSystemHandle.requestPermission + - api.Window.showDirectoryPicker + - api.Window.showOpenFilePicker + - api.Window.showSaveFilePicker diff --git a/features/draft/spec/file-system-access.yml.dist b/features/file-system-access.yml.dist similarity index 100% rename from features/draft/spec/file-system-access.yml.dist rename to features/file-system-access.yml.dist diff --git a/features/origin-private-file-system.yml b/features/origin-private-file-system.yml index a444b3c1334..a24cfb41a21 100644 --- a/features/origin-private-file-system.yml +++ b/features/origin-private-file-system.yml @@ -1,3 +1,4 @@ name: Origin private file system description: The `navigator.storage.getDirectory()` method returns a `FileSystemDirectoryHandle` that is restricted to a specific origin and invisible to the user's actual file system for faster file-based applications, such as SQLite databases. spec: https://fs.spec.whatwg.org/#origin-private-file-system +group: file-system diff --git a/groups/file-system.yml b/groups/file-system.yml new file mode 100644 index 00000000000..cc9f5d71b8e --- /dev/null +++ b/groups/file-system.yml @@ -0,0 +1 @@ +name: File system access