Closed Bug 1654919 Opened 4 years ago Closed 4 years ago

[wpt-sync] Sync PR 24728 - [NativeFS] Writing an unreadable Blob should cause an error.

Categories

(Testing :: web-platform-tests, task, P4)

task

Tracking

(firefox81 fixed)

RESOLVED FIXED
81 Branch
Tracking Status
firefox81 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Marijn Kruisselbrink <mek@chromium.org> wrote:

[NativeFS] Writing an unreadable Blob should cause an error.

Instead of claiming success and writing 0 bytes.

Bug: 1045918
Change-Id: I729ecff8753d0486f101fdf0e801509363636a04
Reviewed-on: https://chromium-review.googlesource.com/2316440
WPT-Export-Revision: a61b6893e05c152f11d0cfa2231bfc811ea43a15

CI Results

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

Total 2 tests and 29 subtests

Status Summary

Firefox

OK : 2
FAIL: 58

Chrome

OK : 2
PASS: 56
FAIL: 2

Safari

OK : 2
FAIL: 58

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

/native-file-system/sandboxed_FileSystemWritableFileStream-write.https.any.html: OK [GitHub], SKIP [Gecko-android-em-7.0-x86_64-debug-geckoview, Gecko-linux1804-64-debug, Gecko-linux1804-64-qr-debug, Gecko-linux1804-64-qr-opt, Gecko-windows10-64-debug, Gecko-windows10-64-qr-debug, Gecko-windows10-64-qr-opt, Gecko-windows7-32-debug] (Chrome: OK, Safari: OK)
write() called with a blob and a valid offset: FAIL (Chrome: PASS, Safari: FAIL)
atomic writes: only one close() operation may succeed: FAIL (Chrome: PASS, Safari: FAIL)
atomic writes: close() fails when parent directory is removed: FAIL (Chrome: PASS, Safari: FAIL)
write() with a valid typed array buffer: FAIL (Chrome: PASS, Safari: FAIL)
write() with a valid utf-8 string: FAIL (Chrome: PASS, Safari: FAIL)
write() with an empty blob to an empty file: FAIL (Chrome: PASS, Safari: FAIL)
atomic writes: writable file streams make atomic changes on close: FAIL (Chrome: PASS, Safari: FAIL)
write() with an empty array buffer to an empty file: FAIL (Chrome: PASS, Safari: FAIL)
write() a blob to an empty file with zero offset: FAIL (Chrome: PASS, Safari: FAIL)
write() called consecutively appends: FAIL (Chrome: PASS, Safari: FAIL)
WriteParams: write missing data param: FAIL (Chrome: PASS, Safari: FAIL)
write() with WriteParams without position to an empty file: FAIL (Chrome: PASS, Safari: FAIL)
atomic writes: close() after close() fails: FAIL (Chrome: PASS, Safari: FAIL)
WriteParams: truncate missing size param: FAIL (Chrome: PASS, Safari: FAIL)
write() a blob to an empty file: FAIL (Chrome: PASS, Safari: FAIL)
write() called with a string and a valid offset: FAIL (Chrome: PASS, Safari: FAIL)
write() called with an invalid offset: FAIL (Chrome: PASS, Safari: FAIL)
write() WriteParams without position and string appends: FAIL (Chrome: PASS, Safari: FAIL)
atomic writes: truncate() after close() fails: FAIL (Chrome: PASS, Safari: FAIL)
getWriter() can be used: FAIL (Chrome: PASS, Safari: FAIL)
write() a string to an empty file with zero offset: FAIL (Chrome: PASS, Safari: FAIL)
write() with an invalid blob to an empty file should reject: FAIL (Chrome: FAIL, Safari: FAIL)
write() with an empty string to an empty file: FAIL (Chrome: PASS, Safari: FAIL)
write() with a string with windows line ending preserved: FAIL (Chrome: PASS, Safari: FAIL)
WriteParams: seek missing position param: FAIL (Chrome: PASS, Safari: FAIL)
atomic writes: write() after close() fails: FAIL (Chrome: PASS, Safari: FAIL)
write() with a string with unix line ending preserved: FAIL (Chrome: PASS, Safari: FAIL)
atomic writes: writable file stream persists file on close, even if file is removed: FAIL (Chrome: PASS, Safari: FAIL)
write() WriteParams without position and blob appends: FAIL (Chrome: PASS, Safari: FAIL)
/native-file-system/sandboxed_FileSystemWritableFileStream-write.https.any.worker.html: OK [GitHub], SKIP [Gecko-android-em-7.0-x86_64-debug-geckoview, Gecko-linux1804-64-debug, Gecko-linux1804-64-qr-debug, Gecko-linux1804-64-qr-opt, Gecko-windows10-64-debug, Gecko-windows10-64-qr-debug, Gecko-windows10-64-qr-opt, Gecko-windows7-32-debug] (Chrome: OK, Safari: OK)
write() called with a blob and a valid offset: FAIL (Chrome: PASS, Safari: FAIL)
atomic writes: only one close() operation may succeed: FAIL (Chrome: PASS, Safari: FAIL)
atomic writes: close() fails when parent directory is removed: FAIL (Chrome: PASS, Safari: FAIL)
write() with a valid typed array buffer: FAIL (Chrome: PASS, Safari: FAIL)
write() with a valid utf-8 string: FAIL (Chrome: PASS, Safari: FAIL)
write() with an empty blob to an empty file: FAIL (Chrome: PASS, Safari: FAIL)
atomic writes: writable file streams make atomic changes on close: FAIL (Chrome: PASS, Safari: FAIL)
write() with an empty array buffer to an empty file: FAIL (Chrome: PASS, Safari: FAIL)
write() a blob to an empty file with zero offset: FAIL (Chrome: PASS, Safari: FAIL)
write() called consecutively appends: FAIL (Chrome: PASS, Safari: FAIL)
WriteParams: write missing data param: FAIL (Chrome: PASS, Safari: FAIL)
write() with WriteParams without position to an empty file: FAIL (Chrome: PASS, Safari: FAIL)
atomic writes: close() after close() fails: FAIL (Chrome: PASS, Safari: FAIL)
WriteParams: truncate missing size param: FAIL (Chrome: PASS, Safari: FAIL)
write() a blob to an empty file: FAIL (Chrome: PASS, Safari: FAIL)
write() called with a string and a valid offset: FAIL (Chrome: PASS, Safari: FAIL)
write() called with an invalid offset: FAIL (Chrome: PASS, Safari: FAIL)
write() WriteParams without position and string appends: FAIL (Chrome: PASS, Safari: FAIL)
atomic writes: truncate() after close() fails: FAIL (Chrome: PASS, Safari: FAIL)
getWriter() can be used: FAIL (Chrome: PASS, Safari: FAIL)
write() a string to an empty file with zero offset: FAIL (Chrome: PASS, Safari: FAIL)
write() with an invalid blob to an empty file should reject: FAIL (Chrome: FAIL, Safari: FAIL)
write() with an empty string to an empty file: FAIL (Chrome: PASS, Safari: FAIL)
write() with a string with windows line ending preserved: FAIL (Chrome: PASS, Safari: FAIL)
WriteParams: seek missing position param: FAIL (Chrome: PASS, Safari: FAIL)
atomic writes: write() after close() fails: FAIL (Chrome: PASS, Safari: FAIL)
write() with a string with unix line ending preserved: FAIL (Chrome: PASS, Safari: FAIL)
atomic writes: writable file stream persists file on close, even if file is removed: FAIL (Chrome: PASS, Safari: FAIL)
write() WriteParams without position and blob appends: FAIL (Chrome: PASS, Safari: FAIL)

Tests Disabled in Gecko Infrastructure

/native-file-system/sandboxed_FileSystemWritableFileStream-write.https.any.html: OK [GitHub], SKIP [Gecko-android-em-7.0-x86_64-debug-geckoview, Gecko-linux1804-64-debug, Gecko-linux1804-64-qr-debug, Gecko-linux1804-64-qr-opt, Gecko-windows10-64-debug, Gecko-windows10-64-qr-debug, Gecko-windows10-64-qr-opt, Gecko-windows7-32-debug] (Chrome: OK, Safari: OK)
/native-file-system/sandboxed_FileSystemWritableFileStream-write.https.any.worker.html: OK [GitHub], SKIP [Gecko-android-em-7.0-x86_64-debug-geckoview, Gecko-linux1804-64-debug, Gecko-linux1804-64-qr-debug, Gecko-linux1804-64-qr-opt, Gecko-windows10-64-debug, Gecko-windows10-64-qr-debug, Gecko-windows10-64-qr-opt, Gecko-windows7-32-debug] (Chrome: OK, Safari: OK)

Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/19c51483bc30 [wpt PR 24728] - [NativeFS] Writing an unreadable Blob should cause an error., a=testonly
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 81 Branch
You need to log in before you can comment on or make changes to this bug.