Closed Bug 1816685 Opened 3 years ago Closed 3 years ago

Let cleanup_writable await to propagate errors in WPT fs tests

Categories

(Core :: DOM: File, defect, P3)

defect

Tracking

()

RESOLVED FIXED
112 Branch
Tracking Status
firefox112 --- fixed

People

(Reporter: jari, Assigned: jari)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

In test
testing/web-platform/tests/fs/FileSystemFileHandle-sync-access-handle-writable-lock.https.tentative.worker.js
the check

await promise_rejects_dom(
-    t, 'NoModificationAllowedError', cleanup_writable(t, await fileHandle.createWritable()));

fails because the otherwise correct error does not get caught by promise_rejects_dom.

If await before fileHandle.createWritable() is removed, the exception is caught as expected.

Summary: Clean up all sync access handles in WPT fs tests → Let cleanup_writable await to propagate errors in WPT fs tests
Blocks: 1816689
Severity: -- → S4
Priority: -- → P3
Pushed by jjalkanen@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/b6ab7a8b9026 Let cleanup_writable await to propagate errors in WPT fs tests. r=dom-storage-reviewers,jesup
Failed to create upstream wpt PR due to merge conflicts. This requires fixup from a wpt sync admin.
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 112 Branch
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/38907 for changes under testing/web-platform/tests
Upstream PR merged by moz-wptsync-bot
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: