Closed Bug 1565629 Opened 6 years ago Closed 6 years ago

[wpt-sync] Sync PR 17806 - [Native File System] Limit entire API surface to secure contexts.

Categories

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

task

Tracking

(firefox70 fixed)

RESOLVED FIXED
mozilla70
Tracking Status
firefox70 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Marijn Kruisselbrink <mek@chromium.org> wrote:

[Native File System] Limit entire API surface to secure contexts.

Also verify in browser process that all access is from potentially
trustworthy origins.

Bug: 971408
Change-Id: Iab770c831be67603a728e8aa55229b4048a410f3
Reviewed-on: https://chromium-review.googlesource.com/1699442
WPT-Export-Revision: eb3c82c763a6a197eb6e99f0c05b27c551adb03c

Type: -- → task
Ran 5 tests and 54 subtests OK : 5 FAIL : 54 New tests that have failures or other problems: /native-file-system/FileSystemBaseHandle-remove.tentative.https.window.html Cleanup to setup test environment: FAIL remove() on a non-empty directory should fail: FAIL remove() on an already removed file should fail: FAIL remove() to remove a file: FAIL remove() to remove an empty directory: FAIL /native-file-system/FileSystemDirectoryHandle-getDirectory.tentative.https.window.html Cleanup to setup test environment: FAIL getDirectory() when a file already exists with the same name: FAIL getDirectory() with "." name: FAIL getDirectory() with ".." name: FAIL getDirectory() with empty name: FAIL getDirectory(create=false) rejects for non-existing directories: FAIL getDirectory(create=false) returns existing directories: FAIL getDirectory(create=false) with a path separator when the directory exists: FAIL getDirectory(create=true) creates an empty directory: FAIL getDirectory(create=true) returns existing directories without erasing: FAIL getDirectory(create=true) with a path separator: FAIL /native-file-system/FileSystemDirectoryHandle-getFile.tentative.https.window.html Cleanup to setup test environment: FAIL getFile() with "." name: FAIL getFile() with ".." name: FAIL getFile() with empty name: FAIL getFile(create=false) rejects for non-existing files: FAIL getFile(create=false) returns existing files: FAIL getFile(create=false) when a directory already exists with the same name: FAIL getFile(create=false) with a path separator when the file exists.: FAIL getFile(create=true) creates an empty file for non-existing files: FAIL getFile(create=true) returns existing files without erasing: FAIL getFile(create=true) when a directory already exists with the same name: FAIL getFile(create=true) with a path separator: FAIL /native-file-system/FileSystemWriter.tentative.https.window.html Cleanup to setup test environment: FAIL truncate() to grow a file: FAIL truncate() to shrink a file: FAIL write() a blob to an empty file: FAIL write() called with a blob and a valid offset: FAIL write() called with an invalid offset: FAIL write() with a string with unix line ending preserved: FAIL write() with a string with windows line ending preserved: FAIL write() with a valid typed array buffer: FAIL write() with a valid utf-8 string: FAIL write() with an empty array buffer to an empty file: FAIL write() with an empty blob to an empty file: FAIL write() with an empty string to an empty file: FAIL /native-file-system/NativeFileSystemWritableFileStream.tentative.https.window.html Cleanup to setup test environment: FAIL truncate() to grow a file: FAIL truncate() to shrink a file: FAIL write() a blob to an empty file: FAIL write() called with a blob and a valid offset: FAIL write() called with an invalid offset: FAIL write() with a string with unix line ending preserved: FAIL write() with a string with windows line ending preserved: FAIL write() with a valid typed array buffer: FAIL write() with a valid utf-8 string: FAIL write() with an empty array buffer to an empty file: FAIL write() with an empty blob to an empty file: FAIL write() with an empty string to an empty file: FAIL
Pushed by james@hoppipolla.co.uk: https://hg.mozilla.org/integration/mozilla-inbound/rev/008133999dc1 [wpt PR 17806] - [Native File System] Limit entire API surface to secure contexts., a=testonly https://hg.mozilla.org/integration/mozilla-inbound/rev/c34d9886e11a [wpt PR 17806] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla70
You need to log in before you can comment on or make changes to this bug.