- From: Julien Cayzac <notifications@github.com>
- Date: Fri, 20 Nov 2026 00:05:05 -0800
- To: w3c/FileAPI <FileAPI@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
- Message-ID: <w3c/FileAPI/issues/235@github.com>
jcayzac created an issue (w3c/FileAPI#235) The `FileSystemEntry` algorithms queue tasks without naming a task source. This covers the callbacks of `getFile()`, `getDirectory()`, `file()`, `getParent()` and `readEntries()`. In HTML, queueing a task requires a task source as input, so these steps cannot be implemented as written. The task source is observable. Each task source maps to one task queue, and tasks in the same queue run in posting order. The source therefore fixes the position of these callbacks relative to other tasks, such as DOM events and timers. It matters within the API too. Some callbacks are queued synchronously from the method call, like the `readEntries()` early exits. Others are queued from in-parallel steps. Only a shared source guarantees their relative order. The natural choice is the file reading task source, defined in this spec for reading work. Chromium already uses the [file reading task source](https://w3c.github.io/FileAPI/#fileReadingTaskSource) for the `readEntries()` callbacks. For the other callbacks it queues tasks onto the same task queue as the [DOM manipulation task source](https://html.spec.whatwg.org/multipage/webappapis.html#dom-manipulation-task-source). What other engines use is not documented. Specifying the file reading task source for all these callbacks is a deliberate alignment, not a description of current behavior. For `readEntries()` Chromium already complies. For the other four it would need to move off the DOM manipulation task source. The observable effect of that change is callback ordering only. -- Reply to this email directly or view it on GitHub: https://github.com/w3c/FileAPI/issues/235 You are receiving this because you are subscribed to this thread. Message ID: <w3c/FileAPI/issues/235@github.com>
Received on Friday, 20 November 2026 08:05:09 UTC