[wpt-sync] Sync PR 64358 - script: Implement readEntries() state machine + Chromium style batching
Categories
(Core :: DOM: Core & HTML, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox162 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 64358 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/64358
Details from upstream follow.
Euclid Ye <yezhizhenjiakang@gmail.com> wrote:
script: Implement readEntries() state machine + Chromium style batching
- This implements state machine for readEntries: the motivation is to
- fail consecutive
readEntriescalls before the previous async callback is run- Run error callback when reading fails
- This adds 100 batching size like Chromium. It was baffling for me why spec here was "unnecessarily complicated", until I found this on MDN:
In Chromium-based browsers, readEntries() will only return the first 100 FileSystemEntry instances. In order to obtain all of the instances, readEntries() must be called multiple times.
Testing: This adds an automated tests, with helpers to reduce duplication from previous two exported tests.
Part of #<!-- nolink -->45653Reviewed in servo/servo#49417
| Assignee | ||
Updated•21 days ago
|
| Assignee | ||
Updated•18 days ago
|
| Assignee | ||
Updated•18 days ago
|
| Assignee | ||
Comment 1•18 days ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/jobs?repo=try&landoInstance=lando-prod-2025&landoCommitID=116443
| Assignee | ||
Comment 2•17 days ago
|
||
CI Results
Ran 9 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 4 tests and 3 subtests
Status Summary
Firefox
OK : 3[GitHub] 4[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
PASS: 7[GitHub] 75[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
FAIL: 2
Chrome
OK : 3
PASS: 1
FAIL: 8
Safari
OK : 3
PASS: 6
FAIL: 3
Links
Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base
Details
New Tests That Don't Pass
- /entries-api/filesystemdirectoryreader.html [wpt.fyi]
- readEntries() fails with InvalidStateError when a read is in progress:
FAIL(Chrome:FAIL, Safari:PASS)
- readEntries() fails with InvalidStateError when a read is in progress:
- /entries-api/filesystementry-getParent.html [wpt.fyi]
- getParent() on a root-level file entry returns the root directory:
FAIL(Chrome:FAIL, Safari:FAIL)
- getParent() on a root-level file entry returns the root directory:
Comment 4•12 days ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/b224acdcecaa
https://hg.mozilla.org/mozilla-central/rev/60556de65ebc
Description
•