Bug 1686537 [wpt PR 27146] - [FSA] Allow seeking past the end of a file, a=testonly
commit0f08dcafe5eae01945ada410d1143e411af0ab42
authorAustin Sullivan <asully@chromium.org>
Tue, 9 Feb 2021 04:36:33 +0000 (9 04:36 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Tue, 9 Feb 2021 11:34:40 +0000 (9 11:34 +0000)
treed70c6aafe275386dd15e89c70cca46f90cf9bb6e
parent24e3af39b85d3c5ac5a75775cb662511ddbd0601
Bug 1686537 [wpt PR 27146] - [FSA] Allow seeking past the end of a file, a=testonly

Automatic update from web-platform-tests
[FSA] Allow seeking past the end of a file

Currently, we reject all attempts to write past the end of a file. This
change makes the API more consistent with the behavior of POSIX.

If writing at an offset past the end of a file, the null bytes between
the old end of the file and the offset will count towards the file's
quota.

Adds Quota tests to the SandboxFSW.

Bug: 1153385
Change-Id: Iec54acbccecb728f9375931825525ba2fbafd1ca
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2593810
Reviewed-by: Marijn Kruisselbrink <mek@chromium.org>
Commit-Queue: Austin Sullivan <asully@chromium.org>
Cr-Commit-Position: refs/heads/master@{#850838}

--

wpt-commits: 9376be061ac2dabc2f60d54a525d2ca81a60589a
wpt-pr: 27146
testing/web-platform/tests/file-system-access/script-tests/FileSystemWritableFileStream-write.js