From dd0055aae486f9f51b7615abc180ff65b42620e0 Mon Sep 17 00:00:00 2001 From: strudy-bot <> Date: Mon, 9 Sep 2024 09:59:56 +0000 Subject: [PATCH] File report on Missing tasks in parallel steps in File System Access --- issues/file-system-access-missingtask.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 issues/file-system-access-missingtask.md diff --git a/issues/file-system-access-missingtask.md b/issues/file-system-access-missingtask.md new file mode 100644 index 00000000..1011dcda --- /dev/null +++ b/issues/file-system-access-missingtask.md @@ -0,0 +1,19 @@ +--- +Title: Missing tasks in parallel steps in File System Access +Tracked: N/A +Repo: 'https://github.com/WICG/file-system-access' +--- + +While crawling [File System Access](https://wicg.github.io/file-system-access/), the following algorithms fire an event, or resolve or reject a Promise, within a step that runs [in parallel](https://html.spec.whatwg.org/multipage/infrastructure.html#in-parallel) without first queuing a task: +* [ ] The [FileSystemHandle/queryPermission(descriptor)](https://wicg.github.io/file-system-access/#dom-filesystemhandle-querypermission) algorithm resolves/rejects a promise directly in a step that runs in parallel +* [ ] The [FileSystemHandle/requestPermission(descriptor)](https://wicg.github.io/file-system-access/#dom-filesystemhandle-requestpermission) algorithm resolves/rejects a promise directly in a step that runs in parallel +* [ ] The [Window/showOpenFilePicker(options)](https://wicg.github.io/file-system-access/#dom-window-showopenfilepicker) algorithm resolves/rejects a promise directly in a step that runs in parallel +* [ ] The [Window/showSaveFilePicker(options)](https://wicg.github.io/file-system-access/#dom-window-showsavefilepicker) algorithm resolves/rejects a promise directly in a step that runs in parallel +* [ ] The [Window/showDirectoryPicker(options)](https://wicg.github.io/file-system-access/#dom-window-showdirectorypicker) algorithm resolves/rejects a promise directly in a step that runs in parallel +* [ ] The [DataTransferItem/getAsFileSystemHandle()](https://wicg.github.io/file-system-access/#dom-datatransferitem-getasfilesystemhandle) algorithm resolves/rejects a promise directly in a step that runs in parallel + +See [Dealing with the event loop](https://html.spec.whatwg.org/multipage/webappapis.html#event-loop-for-spec-authors) in the HTML specification for guidance on how to deal with algorithm sections that run *in parallel*. + +Cc @dontcallmedom @tidoust + +This issue was detected and reported semi-automatically by [Strudy](https://github.com/w3c/strudy/) based on data collected in [webref](https://github.com/w3c/webref/).