Closed Bug 1941946 Opened 1 month ago Closed 1 month ago

[wpt-sync] Sync PR 50112 - FS: Recursive RemoveEntry for non-existent handle throws NotFoundError.

Categories

(Core :: DOM: File, task, P4)

task

Tracking

()

RESOLVED FIXED
136 Branch
Tracking Status
firefox136 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 50112 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/50112
Details from upstream follow.

Xiaohan Zhao <xiaohanzhao@microsoft.com> wrote:

FS: Recursive RemoveEntry for non-existent handle throws NotFoundError.

This change ensures that FileSystemDirectoryHandle.removeEntry throws a
'NotFoundError' DOMException when attempting to remove a non-existent
entry with recursive set to true. Previously, it returned undefined
instead of throwing the expected DOMException.

Bug: 362301049
Change-Id: I17873135fade0f25068fcbca53ed9faf0a363ee3
Reviewed-on: https://chromium-review.googlesource.com/5990675
WPT-Export-Revision: 8d453aeb8b06fcc9ed962cf6e9c83635ce504209

Component: web-platform-tests → DOM: File
Product: Testing → Core

CI Results

Ran 0 Firefox configurations based on mozilla-central, and Firefox, and Chrome on GitHub CI

Total 2 tests and 13 subtests

Status Summary

Firefox

OK : 2
PASS: 24
FAIL: 2

Chrome

OK : 2
PASS: 24
FAIL: 2

Links

GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/500bb13a31ef [wpt PR 50112] - FS: Recursive RemoveEntry for non-existent handle throws NotFoundError., a=testonly
Status: NEW → RESOLVED
Closed: 1 month ago
: --- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 136 Branch
You need to log in before you can comment on or make changes to this bug.