Changeset 285912 in webkit
- Timestamp:
- Nov 16, 2021 6:55:32 PM (8 months ago)
- Location:
- trunk
- Files:
-
- 5 added
- 45 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/imported/w3c/ChangeLog (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/file-system-access/sandboxed_FileSystemBaseHandle-IndexedDB.https.any-expected.txt (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/file-system-access/sandboxed_FileSystemBaseHandle-IndexedDB.https.any.worker-expected.txt (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/file-system-access/sandboxed_FileSystemBaseHandle-isSameEntry.https.any-expected.txt (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/file-system-access/sandboxed_FileSystemBaseHandle-isSameEntry.https.any.worker-expected.txt (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/file-system-access/sandboxed_FileSystemBaseHandle-postMessage-BroadcastChannel.https.window-expected.txt (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/file-system-access/sandboxed_FileSystemBaseHandle-postMessage-Error.https.window-expected.txt (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/file-system-access/sandboxed_FileSystemBaseHandle-postMessage-MessagePort-frames.https.window-expected.txt (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/file-system-access/sandboxed_FileSystemBaseHandle-postMessage-MessagePort-windows.https.window-expected.txt (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/file-system-access/sandboxed_FileSystemBaseHandle-postMessage-MessagePort-workers.https.window-expected.txt (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/file-system-access/sandboxed_FileSystemBaseHandle-postMessage-frames.https.window-expected.txt (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/file-system-access/sandboxed_FileSystemBaseHandle-postMessage-windows.https.window-expected.txt (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/file-system-access/sandboxed_FileSystemBaseHandle-postMessage-workers.https.window-expected.txt (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/file-system-access/sandboxed_FileSystemBaseHandle-remove.https.any-expected.txt (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/file-system-access/sandboxed_FileSystemBaseHandle-remove.https.any.worker-expected.txt (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/file-system-access/sandboxed_FileSystemDirectoryHandle-getDirectoryHandle.https.any-expected.txt (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/file-system-access/sandboxed_FileSystemDirectoryHandle-getDirectoryHandle.https.any.worker-expected.txt (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/file-system-access/sandboxed_FileSystemDirectoryHandle-getFileHandle.https.any-expected.txt (modified) (2 diffs)
-
LayoutTests/imported/w3c/web-platform-tests/file-system-access/sandboxed_FileSystemDirectoryHandle-getFileHandle.https.any.worker-expected.txt (modified) (2 diffs)
-
LayoutTests/imported/w3c/web-platform-tests/file-system-access/sandboxed_FileSystemDirectoryHandle-iteration.https.any-expected.txt (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/file-system-access/sandboxed_FileSystemDirectoryHandle-iteration.https.any.worker-expected.txt (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/file-system-access/sandboxed_FileSystemDirectoryHandle-removeEntry.https.any-expected.txt (modified) (2 diffs)
-
LayoutTests/imported/w3c/web-platform-tests/file-system-access/sandboxed_FileSystemDirectoryHandle-removeEntry.https.any.worker-expected.txt (modified) (2 diffs)
-
LayoutTests/imported/w3c/web-platform-tests/file-system-access/sandboxed_FileSystemDirectoryHandle-resolve.https.any-expected.txt (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/file-system-access/sandboxed_FileSystemDirectoryHandle-resolve.https.any.worker-expected.txt (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/file-system-access/sandboxed_FileSystemFileHandle-getFile.https.any-expected.txt (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/file-system-access/sandboxed_FileSystemFileHandle-getFile.https.any.worker-expected.txt (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/file-system-access/sandboxed_FileSystemWritableFileStream-piped.https.any-expected.txt (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/file-system-access/sandboxed_FileSystemWritableFileStream-piped.https.any.worker-expected.txt (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/file-system-access/sandboxed_FileSystemWritableFileStream-write.https.any-expected.txt (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/file-system-access/sandboxed_FileSystemWritableFileStream-write.https.any.worker-expected.txt (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/file-system-access/sandboxed_FileSystemWritableFileStream.https.any-expected.txt (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/file-system-access/sandboxed_FileSystemWritableFileStream.https.any.worker-expected.txt (modified) (1 diff)
-
LayoutTests/storage/filesystemaccess/file-handle-getfile-expected.txt (added)
-
LayoutTests/storage/filesystemaccess/file-handle-getfile-worker-expected.txt (added)
-
LayoutTests/storage/filesystemaccess/file-handle-getfile-worker.html (added)
-
LayoutTests/storage/filesystemaccess/file-handle-getfile.html (added)
-
LayoutTests/storage/filesystemaccess/resources/file-handle-getfile.js (added)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/Modules/filesystemaccess/FileSystemFileHandle.cpp (modified) (1 diff)
-
Source/WebCore/Modules/filesystemaccess/FileSystemStorageConnection.h (modified) (2 diffs)
-
Source/WebCore/Modules/filesystemaccess/WorkerFileSystemStorageConnection.cpp (modified) (2 diffs)
-
Source/WebCore/Modules/filesystemaccess/WorkerFileSystemStorageConnection.h (modified) (3 diffs)
-
Source/WebKit/ChangeLog (modified) (1 diff)
-
Source/WebKit/NetworkProcess/storage/NetworkStorageManager.cpp (modified) (1 diff)
-
Source/WebKit/NetworkProcess/storage/NetworkStorageManager.h (modified) (1 diff)
-
Source/WebKit/NetworkProcess/storage/NetworkStorageManager.messages.in (modified) (1 diff)
-
Source/WebKit/WebProcess/WebCoreSupport/WebFileSystemStorageConnection.cpp (modified) (1 diff)
-
Source/WebKit/WebProcess/WebCoreSupport/WebFileSystemStorageConnection.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r285896 r285912 1 2021-11-16 Sihui Liu <sihui_liu@apple.com> 2 3 Implement FileSystemFileHandle.getFile() 4 https://bugs.webkit.org/show_bug.cgi?id=232716 5 <rdar://problem/85022453> 6 7 Reviewed by Youenn Fablet. 8 9 * storage/filesystemaccess/file-handle-getfile-expected.txt: Added. 10 * storage/filesystemaccess/file-handle-getfile-worker-expected.txt: Added. 11 * storage/filesystemaccess/file-handle-getfile-worker.html: Added. 12 * storage/filesystemaccess/file-handle-getfile.html: Added. 13 * storage/filesystemaccess/resources/file-handle-getfile.js: Added. 14 (finishTest): 15 (async read): 16 (async test): 17 1 18 2021-11-16 Nikita Vasilyev <nvasilyev@apple.com> 2 19 -
trunk/LayoutTests/imported/w3c/ChangeLog
r285885 r285912 1 2021-11-16 Sihui Liu <sihui_liu@apple.com> 2 3 Implement FileSystemFileHandle.getFile() 4 https://bugs.webkit.org/show_bug.cgi?id=232716 5 <rdar://problem/85022453> 6 7 Reviewed by Youenn Fablet. 8 9 Rebaselined existing tests as some tests are passed and the others can run further due to the new support. 10 11 * web-platform-tests/file-system-access/sandboxed_FileSystemBaseHandle-IndexedDB.https.any-expected.txt: 12 * web-platform-tests/file-system-access/sandboxed_FileSystemBaseHandle-IndexedDB.https.any.worker-expected.txt: 13 * web-platform-tests/file-system-access/sandboxed_FileSystemBaseHandle-isSameEntry.https.any-expected.txt: 14 * web-platform-tests/file-system-access/sandboxed_FileSystemBaseHandle-isSameEntry.https.any.worker-expected.txt: 15 * web-platform-tests/file-system-access/sandboxed_FileSystemBaseHandle-postMessage-BroadcastChannel.https.window-expected.txt: 16 * web-platform-tests/file-system-access/sandboxed_FileSystemBaseHandle-postMessage-Error.https.window-expected.txt: 17 * web-platform-tests/file-system-access/sandboxed_FileSystemBaseHandle-postMessage-MessagePort-frames.https.window-expected.txt: 18 * web-platform-tests/file-system-access/sandboxed_FileSystemBaseHandle-postMessage-MessagePort-windows.https.window-expected.txt: 19 * web-platform-tests/file-system-access/sandboxed_FileSystemBaseHandle-postMessage-MessagePort-workers.https.window-expected.txt: 20 * web-platform-tests/file-system-access/sandboxed_FileSystemBaseHandle-postMessage-frames.https.window-expected.txt: 21 * web-platform-tests/file-system-access/sandboxed_FileSystemBaseHandle-postMessage-windows.https.window-expected.txt: 22 * web-platform-tests/file-system-access/sandboxed_FileSystemBaseHandle-postMessage-workers.https.window-expected.txt: 23 * web-platform-tests/file-system-access/sandboxed_FileSystemBaseHandle-remove.https.any-expected.txt: 24 * web-platform-tests/file-system-access/sandboxed_FileSystemBaseHandle-remove.https.any.worker-expected.txt: 25 * web-platform-tests/file-system-access/sandboxed_FileSystemDirectoryHandle-getDirectoryHandle.https.any-expected.txt: 26 * web-platform-tests/file-system-access/sandboxed_FileSystemDirectoryHandle-getDirectoryHandle.https.any.worker-expected.txt: 27 * web-platform-tests/file-system-access/sandboxed_FileSystemDirectoryHandle-getFileHandle.https.any-expected.txt: 28 * web-platform-tests/file-system-access/sandboxed_FileSystemDirectoryHandle-getFileHandle.https.any.worker-expected.txt: 29 * web-platform-tests/file-system-access/sandboxed_FileSystemDirectoryHandle-iteration.https.any-expected.txt: 30 * web-platform-tests/file-system-access/sandboxed_FileSystemDirectoryHandle-iteration.https.any.worker-expected.txt: 31 * web-platform-tests/file-system-access/sandboxed_FileSystemDirectoryHandle-removeEntry.https.any-expected.txt: 32 * web-platform-tests/file-system-access/sandboxed_FileSystemDirectoryHandle-removeEntry.https.any.worker-expected.txt: 33 * web-platform-tests/file-system-access/sandboxed_FileSystemDirectoryHandle-resolve.https.any-expected.txt: 34 * web-platform-tests/file-system-access/sandboxed_FileSystemDirectoryHandle-resolve.https.any.worker-expected.txt: 35 * web-platform-tests/file-system-access/sandboxed_FileSystemFileHandle-getFile.https.any-expected.txt: 36 * web-platform-tests/file-system-access/sandboxed_FileSystemFileHandle-getFile.https.any.worker-expected.txt: 37 * web-platform-tests/file-system-access/sandboxed_FileSystemWritableFileStream-piped.https.any-expected.txt: 38 * web-platform-tests/file-system-access/sandboxed_FileSystemWritableFileStream-piped.https.any.worker-expected.txt: 39 * web-platform-tests/file-system-access/sandboxed_FileSystemWritableFileStream-write.https.any-expected.txt: 40 * web-platform-tests/file-system-access/sandboxed_FileSystemWritableFileStream-write.https.any.worker-expected.txt: 41 * web-platform-tests/file-system-access/sandboxed_FileSystemWritableFileStream.https.any-expected.txt: 42 * web-platform-tests/file-system-access/sandboxed_FileSystemWritableFileStream.https.any.worker-expected.txt: 43 1 44 2021-11-16 Rob Buis <rbuis@igalia.com> 2 45 -
trunk/LayoutTests/imported/w3c/web-platform-tests/file-system-access/sandboxed_FileSystemBaseHandle-IndexedDB.https.any-expected.txt
r283881 r285912 1 1 2 FAIL Store handle in IndexedDB and read from pending transaction. promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"3 FAIL Store handle in IndexedDB and read from new transaction. promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"4 FAIL Store handles and blobs in IndexedDB. promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"5 FAIL Store handle in IndexedDB and read using a cursor. promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"6 FAIL Store handle in IndexedDB using inline keys. promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"2 FAIL Store handle in IndexedDB and read from pending transaction. promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 3 FAIL Store handle in IndexedDB and read from new transaction. promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 4 FAIL Store handles and blobs in IndexedDB. promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 5 FAIL Store handle in IndexedDB and read using a cursor. promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 6 FAIL Store handle in IndexedDB using inline keys. promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 7 7 -
trunk/LayoutTests/imported/w3c/web-platform-tests/file-system-access/sandboxed_FileSystemBaseHandle-IndexedDB.https.any.worker-expected.txt
r283881 r285912 1 1 2 FAIL Store handle in IndexedDB and read from pending transaction. promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"3 FAIL Store handle in IndexedDB and read from new transaction. promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"4 FAIL Store handles and blobs in IndexedDB. promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"5 FAIL Store handle in IndexedDB and read using a cursor. promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"6 FAIL Store handle in IndexedDB using inline keys. promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"2 FAIL Store handle in IndexedDB and read from pending transaction. promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 3 FAIL Store handle in IndexedDB and read from new transaction. promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 4 FAIL Store handles and blobs in IndexedDB. promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 5 FAIL Store handle in IndexedDB and read using a cursor. promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 6 FAIL Store handle in IndexedDB using inline keys. promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 7 7 -
trunk/LayoutTests/imported/w3c/web-platform-tests/file-system-access/sandboxed_FileSystemBaseHandle-isSameEntry.https.any-expected.txt
r283881 r285912 3 3 PASS isSameEntry for different directories returns false 4 4 PASS isSameEntry for different handles for the same directory 5 FAIL isSameEntry for identical file handles returns true promise_test: Unhandled rejection with value: object "NotSupportedError: getFile is not implemented" 6 FAIL isSameEntry for different files returns false promise_test: Unhandled rejection with value: object "NotSupportedError: getFile is not implemented" 7 FAIL isSameEntry for different handles for the same file promise_test: Unhandled rejection with value: object "NotSupportedError: getFile is not implemented" 8 FAIL isSameEntry comparing a file to a file in a different directory returns false promise_test: Unhandled rejection with value: object "NotSupportedError: getFile is not implemented" 9 FAIL isSameEntry comparing a file to a directory returns false promise_test: Unhandled rejection with value: object "NotSupportedError: getFile is not implemented" 5 PASS isSameEntry for identical file handles returns true 6 PASS isSameEntry for different files returns false 7 PASS isSameEntry for different handles for the same file 8 PASS isSameEntry comparing a file to a file in a different directory returns false 9 PASS isSameEntry comparing a file to a directory returns false 10 10 -
trunk/LayoutTests/imported/w3c/web-platform-tests/file-system-access/sandboxed_FileSystemBaseHandle-isSameEntry.https.any.worker-expected.txt
r283881 r285912 3 3 PASS isSameEntry for different directories returns false 4 4 PASS isSameEntry for different handles for the same directory 5 FAIL isSameEntry for identical file handles returns true promise_test: Unhandled rejection with value: object "NotSupportedError: getFile is not implemented" 6 FAIL isSameEntry for different files returns false promise_test: Unhandled rejection with value: object "NotSupportedError: getFile is not implemented" 7 FAIL isSameEntry for different handles for the same file promise_test: Unhandled rejection with value: object "NotSupportedError: getFile is not implemented" 8 FAIL isSameEntry comparing a file to a file in a different directory returns false promise_test: Unhandled rejection with value: object "NotSupportedError: getFile is not implemented" 9 FAIL isSameEntry comparing a file to a directory returns false promise_test: Unhandled rejection with value: object "NotSupportedError: getFile is not implemented" 5 PASS isSameEntry for identical file handles returns true 6 PASS isSameEntry for different files returns false 7 PASS isSameEntry for different handles for the same file 8 PASS isSameEntry comparing a file to a file in a different directory returns false 9 PASS isSameEntry comparing a file to a directory returns false 10 10 -
trunk/LayoutTests/imported/w3c/web-platform-tests/file-system-access/sandboxed_FileSystemBaseHandle-postMessage-BroadcastChannel.https.window-expected.txt
r285534 r285912 1 1 2 FAIL Send and receive messages using a broadcast channel in an iframe, dedicated worker and service worker. promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"2 FAIL Send and receive messages using a broadcast channel in an iframe, dedicated worker and service worker. promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 3 3 -
trunk/LayoutTests/imported/w3c/web-platform-tests/file-system-access/sandboxed_FileSystemBaseHandle-postMessage-Error.https.window-expected.txt
r283881 r285912 1 1 2 FAIL Fail to send and receive messages using a cross origin iframe. promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"3 FAIL Fail to send and receive messages using a cross origin message port in an iframe. promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"4 FAIL Fail to send to a sandboxed iframe. promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"5 FAIL Fail to send messages using a message port to a sandboxed iframe. promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"6 FAIL Fail to send messages to a data URI iframe. promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"7 FAIL Fail to send messages using a message port in a data URI iframe. promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"8 FAIL Fail to send and receive messages using a cross origin window. promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"9 FAIL Fail to send and receive messages using a cross origin message port in a window. promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"10 FAIL Fail to send messages to a sandboxed window. promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"11 FAIL Fail to send messages using a message port to a sandboxed window. promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"2 FAIL Fail to send and receive messages using a cross origin iframe. promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 3 FAIL Fail to send and receive messages using a cross origin message port in an iframe. promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 4 FAIL Fail to send to a sandboxed iframe. promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 5 FAIL Fail to send messages using a message port to a sandboxed iframe. promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 6 FAIL Fail to send messages to a data URI iframe. promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 7 FAIL Fail to send messages using a message port in a data URI iframe. promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 8 FAIL Fail to send and receive messages using a cross origin window. promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 9 FAIL Fail to send and receive messages using a cross origin message port in a window. promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 10 FAIL Fail to send messages to a sandboxed window. promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 11 FAIL Fail to send messages using a message port to a sandboxed window. promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 12 12 -
trunk/LayoutTests/imported/w3c/web-platform-tests/file-system-access/sandboxed_FileSystemBaseHandle-postMessage-MessagePort-frames.https.window-expected.txt
r283881 r285912 1 1 2 FAIL Send and receive messages using a message port in a same origin iframe. promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"3 FAIL Send and receive messages using a message port in a sandboxed same origin iframe. promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"4 FAIL Send and receive messages using a message port in a blob iframe. promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"5 FAIL Send and receive messages using a message port in an iframe srcdoc. promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"2 FAIL Send and receive messages using a message port in a same origin iframe. promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 3 FAIL Send and receive messages using a message port in a sandboxed same origin iframe. promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 4 FAIL Send and receive messages using a message port in a blob iframe. promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 5 FAIL Send and receive messages using a message port in an iframe srcdoc. promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 6 6 -
trunk/LayoutTests/imported/w3c/web-platform-tests/file-system-access/sandboxed_FileSystemBaseHandle-postMessage-MessagePort-windows.https.window-expected.txt
r283881 r285912 1 1 2 FAIL Send and receive messages using a message port in a same origin window. promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"3 FAIL Send and receive messages using a message port in a blob window. promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"4 FAIL Send and receive messages using a message port in a sandboxed same origin window. promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"2 FAIL Send and receive messages using a message port in a same origin window. promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 3 FAIL Send and receive messages using a message port in a blob window. promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 4 FAIL Send and receive messages using a message port in a sandboxed same origin window. promise_test: Unhandled rejection with value: object "SyntaxError: The string did not match the expected pattern." 5 5 -
trunk/LayoutTests/imported/w3c/web-platform-tests/file-system-access/sandboxed_FileSystemBaseHandle-postMessage-MessagePort-workers.https.window-expected.txt
r283881 r285912 1 1 2 FAIL Send and receive messages using a message port in a dedicated worker. promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"3 FAIL Send and receive messages using a message port in a service worker. promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"2 FAIL Send and receive messages using a message port in a dedicated worker. promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 3 FAIL Send and receive messages using a message port in a service worker. promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 4 4 FAIL Send and receive messages using a message port in a shared worker. promise_test: Unhandled rejection with value: object "TypeError: null is not an object (evaluating 'shared_worker.port.start')" 5 5 -
trunk/LayoutTests/imported/w3c/web-platform-tests/file-system-access/sandboxed_FileSystemBaseHandle-postMessage-frames.https.window-expected.txt
r283881 r285912 1 1 2 FAIL Send and receive messages using a same origin iframe. promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"3 FAIL Send and receive messages using a sandboxed same origin iframe. promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"4 FAIL Send and receive messages using a blob iframe. promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"5 FAIL Send and receive messages using an iframe srcdoc. promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"2 FAIL Send and receive messages using a same origin iframe. promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 3 FAIL Send and receive messages using a sandboxed same origin iframe. promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 4 FAIL Send and receive messages using a blob iframe. promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 5 FAIL Send and receive messages using an iframe srcdoc. promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 6 6 -
trunk/LayoutTests/imported/w3c/web-platform-tests/file-system-access/sandboxed_FileSystemBaseHandle-postMessage-windows.https.window-expected.txt
r283881 r285912 1 1 2 FAIL Send and receive messages using a same origin window. promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"3 FAIL Send and receive messages using a blob window. promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"4 FAIL Send and receive messages using a sandboxed same origin window. promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"2 FAIL Send and receive messages using a same origin window. promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 3 FAIL Send and receive messages using a blob window. promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 4 FAIL Send and receive messages using a sandboxed same origin window. promise_test: Unhandled rejection with value: object "SyntaxError: The string did not match the expected pattern." 5 5 -
trunk/LayoutTests/imported/w3c/web-platform-tests/file-system-access/sandboxed_FileSystemBaseHandle-postMessage-workers.https.window-expected.txt
r283881 r285912 1 1 2 FAIL Send and receive messages using a dedicated worker. promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"3 FAIL Send and receive messages using a service worker. promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"2 FAIL Send and receive messages using a dedicated worker. promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 3 FAIL Send and receive messages using a service worker. promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 4 4 FAIL Send and receive messages using a shared worker. promise_test: Unhandled rejection with value: object "TypeError: null is not an object (evaluating 'shared_worker.port.start')" 5 5 -
trunk/LayoutTests/imported/w3c/web-platform-tests/file-system-access/sandboxed_FileSystemBaseHandle-remove.https.any-expected.txt
r283881 r285912 1 1 2 FAIL remove() to remove a file promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"3 FAIL remove() on an already removed file should fail promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"4 FAIL remove() to remove an empty directory promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"2 FAIL remove() to remove a file promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 3 FAIL remove() on an already removed file should fail promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 4 FAIL remove() to remove an empty directory promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 5 5 FAIL remove() on an already removed directory should fail promise_test: Unhandled rejection with value: object "TypeError: dir.remove is not a function. (In 'dir.remove()', 'dir.remove' is undefined)" 6 FAIL remove() on a non-empty directory should fail promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"7 FAIL remove() on a directory recursively should delete all sub-items promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"8 FAIL remove() on a file should ignore the recursive option promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"6 FAIL remove() on a non-empty directory should fail promise_test: Unhandled rejection with value: object "TypeError: dir.remove is not a function. (In 'dir.remove()', 'dir.remove' is undefined)" 7 FAIL remove() on a directory recursively should delete all sub-items promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 8 FAIL remove() on a file should ignore the recursive option promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 9 9 -
trunk/LayoutTests/imported/w3c/web-platform-tests/file-system-access/sandboxed_FileSystemBaseHandle-remove.https.any.worker-expected.txt
r283881 r285912 1 1 2 FAIL remove() to remove a file promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"3 FAIL remove() on an already removed file should fail promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"4 FAIL remove() to remove an empty directory promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"2 FAIL remove() to remove a file promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 3 FAIL remove() on an already removed file should fail promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 4 FAIL remove() to remove an empty directory promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 5 5 FAIL remove() on an already removed directory should fail promise_test: Unhandled rejection with value: object "TypeError: dir.remove is not a function. (In 'dir.remove()', 'dir.remove' is undefined)" 6 FAIL remove() on a non-empty directory should fail promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"7 FAIL remove() on a directory recursively should delete all sub-items promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"8 FAIL remove() on a file should ignore the recursive option promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"6 FAIL remove() on a non-empty directory should fail promise_test: Unhandled rejection with value: object "TypeError: dir.remove is not a function. (In 'dir.remove()', 'dir.remove' is undefined)" 7 FAIL remove() on a directory recursively should delete all sub-items promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 8 FAIL remove() on a file should ignore the recursive option promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 9 9 -
trunk/LayoutTests/imported/w3c/web-platform-tests/file-system-access/sandboxed_FileSystemDirectoryHandle-getDirectoryHandle.https.any-expected.txt
r283881 r285912 2 2 PASS getDirectoryHandle(create=false) rejects for non-existing directories 3 3 FAIL getDirectoryHandle(create=true) creates an empty directory promise_test: Unhandled rejection with value: object "TypeError: undefined is not a function (near '...entry of handle...')" 4 FAIL getDirectoryHandle(create=false) returns existing directories promise_test: Unhandled rejection with value: object "NotSupportedError: getFile is not implemented" 4 PASS getDirectoryHandle(create=false) returns existing directories 5 5 PASS getDirectoryHandle(create=true) returns existing directories without erasing 6 FAIL getDirectoryHandle() when a file already exists with the same name promise_ test: Unhandled rejection with value: object "NotSupportedError: getFile is not implemented"6 FAIL getDirectoryHandle() when a file already exists with the same name promise_rejects_dom: function "function () { throw e }" threw object "TypeError: Type error" that is not a DOMException TypeMismatchError: property "code" is equal to undefined, expected 17 7 7 FAIL getDirectoryHandle() with empty name assert_unreached: Should have rejected: undefined Reached unreachable code 8 8 FAIL getDirectoryHandle() with "." name promise_rejects_js: function "function () { throw e }" threw object "UnknownError: Name is invalid" ("UnknownError") expected instance of function "function TypeError() { -
trunk/LayoutTests/imported/w3c/web-platform-tests/file-system-access/sandboxed_FileSystemDirectoryHandle-getDirectoryHandle.https.any.worker-expected.txt
r283881 r285912 2 2 PASS getDirectoryHandle(create=false) rejects for non-existing directories 3 3 FAIL getDirectoryHandle(create=true) creates an empty directory promise_test: Unhandled rejection with value: object "TypeError: undefined is not a function (near '...entry of handle...')" 4 FAIL getDirectoryHandle(create=false) returns existing directories promise_test: Unhandled rejection with value: object "NotSupportedError: getFile is not implemented" 4 PASS getDirectoryHandle(create=false) returns existing directories 5 5 PASS getDirectoryHandle(create=true) returns existing directories without erasing 6 FAIL getDirectoryHandle() when a file already exists with the same name promise_ test: Unhandled rejection with value: object "NotSupportedError: getFile is not implemented"6 FAIL getDirectoryHandle() when a file already exists with the same name promise_rejects_dom: function "function () { throw e }" threw object "TypeError: Type error" that is not a DOMException TypeMismatchError: property "code" is equal to undefined, expected 17 7 7 FAIL getDirectoryHandle() with empty name assert_unreached: Should have rejected: undefined Reached unreachable code 8 8 FAIL getDirectoryHandle() with "." name promise_rejects_js: function "function () { throw e }" threw object "UnknownError: Name is invalid" ("UnknownError") expected instance of function "function TypeError() { -
trunk/LayoutTests/imported/w3c/web-platform-tests/file-system-access/sandboxed_FileSystemDirectoryHandle-getFileHandle.https.any-expected.txt
r283881 r285912 1 1 2 2 PASS getFileHandle(create=false) rejects for non-existing files 3 FAIL getFileHandle(create=true) creates an empty file for non-existing files promise_test: Unhandled rejection with value: object "NotSupportedError: getFile is not implemented" 4 FAIL getFileHandle(create=false) returns existing files promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"5 FAIL getFileHandle(create=true) returns existing files without erasing promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"3 PASS getFileHandle(create=true) creates an empty file for non-existing files 4 FAIL getFileHandle(create=false) returns existing files promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 5 FAIL getFileHandle(create=true) returns existing files without erasing promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 6 6 FAIL getFileHandle(create=false) when a directory already exists with the same name promise_rejects_dom: function "function () { throw e }" threw object "TypeError: Type error" that is not a DOMException TypeMismatchError: property "code" is equal to undefined, expected 17 7 7 FAIL getFileHandle(create=true) when a directory already exists with the same name promise_rejects_dom: function "function () { throw e }" threw object "TypeError: Type error" that is not a DOMException TypeMismatchError: property "code" is equal to undefined, expected 17 … … 13 13 [native code] 14 14 }" ("TypeError") 15 FAIL getFileHandle(create=false) with a path separator when the file exists. promise_test: Unhandled rejection with value: object "NotSupportedError: getFile is not implemented" 15 FAIL getFileHandle(create=false) with a path separator when the file exists. promise_rejects_js: getFileHandle() must reject names containing "/" function "function () { throw e }" threw object "UnknownError: Name is invalid" ("UnknownError") expected instance of function "function TypeError() { 16 [native code] 17 }" ("TypeError") 16 18 FAIL getFileHandle(create=true) with a path separator promise_rejects_js: getFileHandle(create=true) must reject names containing "/" function "function () { throw e }" threw object "UnknownError: Name is invalid" ("UnknownError") expected instance of function "function TypeError() { 17 19 [native code] -
trunk/LayoutTests/imported/w3c/web-platform-tests/file-system-access/sandboxed_FileSystemDirectoryHandle-getFileHandle.https.any.worker-expected.txt
r283881 r285912 1 1 2 2 PASS getFileHandle(create=false) rejects for non-existing files 3 FAIL getFileHandle(create=true) creates an empty file for non-existing files promise_test: Unhandled rejection with value: object "NotSupportedError: getFile is not implemented" 4 FAIL getFileHandle(create=false) returns existing files promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"5 FAIL getFileHandle(create=true) returns existing files without erasing promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"3 PASS getFileHandle(create=true) creates an empty file for non-existing files 4 FAIL getFileHandle(create=false) returns existing files promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 5 FAIL getFileHandle(create=true) returns existing files without erasing promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 6 6 FAIL getFileHandle(create=false) when a directory already exists with the same name promise_rejects_dom: function "function () { throw e }" threw object "TypeError: Type error" that is not a DOMException TypeMismatchError: property "code" is equal to undefined, expected 17 7 7 FAIL getFileHandle(create=true) when a directory already exists with the same name promise_rejects_dom: function "function () { throw e }" threw object "TypeError: Type error" that is not a DOMException TypeMismatchError: property "code" is equal to undefined, expected 17 … … 13 13 [native code] 14 14 }" ("TypeError") 15 FAIL getFileHandle(create=false) with a path separator when the file exists. promise_test: Unhandled rejection with value: object "NotSupportedError: getFile is not implemented" 15 FAIL getFileHandle(create=false) with a path separator when the file exists. promise_rejects_js: getFileHandle() must reject names containing "/" function "function () { throw e }" threw object "UnknownError: Name is invalid" ("UnknownError") expected instance of function "function TypeError() { 16 [native code] 17 }" ("TypeError") 16 18 FAIL getFileHandle(create=true) with a path separator promise_rejects_js: getFileHandle(create=true) must reject names containing "/" function "function () { throw e }" threw object "UnknownError: Name is invalid" ("UnknownError") expected instance of function "function TypeError() { 17 19 [native code] -
trunk/LayoutTests/imported/w3c/web-platform-tests/file-system-access/sandboxed_FileSystemDirectoryHandle-iteration.https.any-expected.txt
r283881 r285912 1 1 2 FAIL returning early from an iteration doesn't crash promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"3 FAIL @@asyncIterator: full iteration works promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"4 FAIL entries: full iteration works promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"5 FAIL values: full iteration works promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"6 FAIL keys: full iteration works promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"7 FAIL iteration while iterator gets garbage collected promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"2 FAIL returning early from an iteration doesn't crash promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 3 FAIL @@asyncIterator: full iteration works promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 4 FAIL entries: full iteration works promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 5 FAIL values: full iteration works promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 6 FAIL keys: full iteration works promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 7 FAIL iteration while iterator gets garbage collected promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 8 8 -
trunk/LayoutTests/imported/w3c/web-platform-tests/file-system-access/sandboxed_FileSystemDirectoryHandle-iteration.https.any.worker-expected.txt
r283881 r285912 1 1 2 FAIL returning early from an iteration doesn't crash promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"3 FAIL @@asyncIterator: full iteration works promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"4 FAIL entries: full iteration works promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"5 FAIL values: full iteration works promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"6 FAIL keys: full iteration works promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"7 FAIL iteration while iterator gets garbage collected promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"2 FAIL returning early from an iteration doesn't crash promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 3 FAIL @@asyncIterator: full iteration works promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 4 FAIL entries: full iteration works promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 5 FAIL values: full iteration works promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 6 FAIL keys: full iteration works promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 7 FAIL iteration while iterator gets garbage collected promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 8 8 -
trunk/LayoutTests/imported/w3c/web-platform-tests/file-system-access/sandboxed_FileSystemDirectoryHandle-removeEntry.https.any-expected.txt
r283881 r285912 1 1 2 FAIL removeEntry() to remove a file promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"3 FAIL removeEntry() on an already removed file should fail promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"4 FAIL removeEntry() to remove an empty directory promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"5 FAIL removeEntry() on a non-empty directory should fail promise_ test: Unhandled rejection with value: object "NotSupportedError: getFile is not implemented"6 FAIL removeEntry() on a directory recursively should delete all sub-items promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"2 FAIL removeEntry() to remove a file promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 3 FAIL removeEntry() on an already removed file should fail promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 4 FAIL removeEntry() to remove an empty directory promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 5 FAIL removeEntry() on a non-empty directory should fail promise_rejects_dom: function "function () { throw e }" threw object "UnknownError: The operation failed for an unknown transient reason (e.g. out of memory)." that is not a DOMException InvalidModificationError: property "code" is equal to 0, expected 13 6 FAIL removeEntry() on a directory recursively should delete all sub-items promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 7 7 FAIL removeEntry() with empty name should fail assert_unreached: Should have rejected: undefined Reached unreachable code 8 8 FAIL removeEntry() with "." name should fail promise_rejects_js: function "function () { throw e }" threw object "UnknownError: The operation failed for an unknown transient reason (e.g. out of memory)." ("UnknownError") expected instance of function "function TypeError() { … … 12 12 [native code] 13 13 }" ("TypeError") 14 FAIL removeEntry() with a path separator should fail. promise_test: Unhandled rejection with value: object "NotSupportedError: getFile is not implemented"14 FAIL removeEntry() with a path separator should fail. assert_unreached: Should have rejected: removeEntry() must reject names containing "/" Reached unreachable code 15 15 -
trunk/LayoutTests/imported/w3c/web-platform-tests/file-system-access/sandboxed_FileSystemDirectoryHandle-removeEntry.https.any.worker-expected.txt
r283881 r285912 1 1 2 FAIL removeEntry() to remove a file promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"3 FAIL removeEntry() on an already removed file should fail promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"4 FAIL removeEntry() to remove an empty directory promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"5 FAIL removeEntry() on a non-empty directory should fail promise_ test: Unhandled rejection with value: object "NotSupportedError: getFile is not implemented"6 FAIL removeEntry() on a directory recursively should delete all sub-items promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"2 FAIL removeEntry() to remove a file promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 3 FAIL removeEntry() on an already removed file should fail promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 4 FAIL removeEntry() to remove an empty directory promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 5 FAIL removeEntry() on a non-empty directory should fail promise_rejects_dom: function "function () { throw e }" threw object "UnknownError: The operation failed for an unknown transient reason (e.g. out of memory)." that is not a DOMException InvalidModificationError: property "code" is equal to 0, expected 13 6 FAIL removeEntry() on a directory recursively should delete all sub-items promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 7 7 FAIL removeEntry() with empty name should fail assert_unreached: Should have rejected: undefined Reached unreachable code 8 8 FAIL removeEntry() with "." name should fail promise_rejects_js: function "function () { throw e }" threw object "UnknownError: The operation failed for an unknown transient reason (e.g. out of memory)." ("UnknownError") expected instance of function "function TypeError() { … … 12 12 [native code] 13 13 }" ("TypeError") 14 FAIL removeEntry() with a path separator should fail. promise_test: Unhandled rejection with value: object "NotSupportedError: getFile is not implemented"14 FAIL removeEntry() with a path separator should fail. assert_unreached: Should have rejected: removeEntry() must reject names containing "/" Reached unreachable code 15 15 -
trunk/LayoutTests/imported/w3c/web-platform-tests/file-system-access/sandboxed_FileSystemDirectoryHandle-resolve.https.any-expected.txt
r283881 r285912 1 1 2 2 PASS Resolve returns empty array for same directory 3 FAIL Resolve returns correct path promise_test: Unhandled rejection with value: object "NotSupportedError: getFile is not implemented" 4 FAIL Resolve returns correct path with non-ascii characters promise_test: Unhandled rejection with value: object "NotSupportedError: getFile is not implemented" 5 FAIL Resolve returns null when entry is not a child promise_test: Unhandled rejection with value: object "NotSupportedError: getFile is not implemented"3 PASS Resolve returns correct path 4 PASS Resolve returns correct path with non-ascii characters 5 FAIL Resolve returns null when entry is not a child assert_equals: expected null but got [] 6 6 -
trunk/LayoutTests/imported/w3c/web-platform-tests/file-system-access/sandboxed_FileSystemDirectoryHandle-resolve.https.any.worker-expected.txt
r283881 r285912 1 1 2 2 PASS Resolve returns empty array for same directory 3 FAIL Resolve returns correct path promise_test: Unhandled rejection with value: object "NotSupportedError: getFile is not implemented" 4 FAIL Resolve returns correct path with non-ascii characters promise_test: Unhandled rejection with value: object "NotSupportedError: getFile is not implemented" 5 FAIL Resolve returns null when entry is not a child promise_test: Unhandled rejection with value: object "NotSupportedError: getFile is not implemented"3 PASS Resolve returns correct path 4 PASS Resolve returns correct path with non-ascii characters 5 FAIL Resolve returns null when entry is not a child assert_equals: expected null but got [] 6 6 -
trunk/LayoutTests/imported/w3c/web-platform-tests/file-system-access/sandboxed_FileSystemFileHandle-getFile.https.any-expected.txt
r283881 r285912 1 1 2 FAIL getFile() provides a file that can be sliced promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"3 FAIL getFile() returns last modified time promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"2 FAIL getFile() provides a file that can be sliced promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 3 FAIL getFile() returns last modified time promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable({keepExistingData: false})', 'handle.createWritable' is undefined)" 4 4 -
trunk/LayoutTests/imported/w3c/web-platform-tests/file-system-access/sandboxed_FileSystemFileHandle-getFile.https.any.worker-expected.txt
r283881 r285912 1 1 2 FAIL getFile() provides a file that can be sliced promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"3 FAIL getFile() returns last modified time promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"2 FAIL getFile() provides a file that can be sliced promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 3 FAIL getFile() returns last modified time promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable({keepExistingData: false})', 'handle.createWritable' is undefined)" 4 4 -
trunk/LayoutTests/imported/w3c/web-platform-tests/file-system-access/sandboxed_FileSystemWritableFileStream-piped.https.any-expected.txt
r283881 r285912 1 1 2 FAIL can be piped to with a string promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"3 FAIL can be piped to with an ArrayBuffer promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"4 FAIL can be piped to with a Blob promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"5 FAIL can be piped to with a param object with write command promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"6 FAIL can be piped to with a param object with multiple commands promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"7 FAIL multiple operations can be queued promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"8 FAIL plays well with fetch promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"9 FAIL abort() aborts write promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"2 FAIL can be piped to with a string promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 3 FAIL can be piped to with an ArrayBuffer promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 4 FAIL can be piped to with a Blob promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 5 FAIL can be piped to with a param object with write command promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 6 FAIL can be piped to with a param object with multiple commands promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 7 FAIL multiple operations can be queued promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 8 FAIL plays well with fetch promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 9 FAIL abort() aborts write promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 10 10 -
trunk/LayoutTests/imported/w3c/web-platform-tests/file-system-access/sandboxed_FileSystemWritableFileStream-piped.https.any.worker-expected.txt
r283881 r285912 1 1 2 FAIL can be piped to with a string promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"3 FAIL can be piped to with an ArrayBuffer promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"4 FAIL can be piped to with a Blob promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"5 FAIL can be piped to with a param object with write command promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"6 FAIL can be piped to with a param object with multiple commands promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"7 FAIL multiple operations can be queued promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"8 FAIL plays well with fetch promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"9 FAIL abort() aborts write promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"2 FAIL can be piped to with a string promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 3 FAIL can be piped to with an ArrayBuffer promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 4 FAIL can be piped to with a Blob promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 5 FAIL can be piped to with a param object with write command promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 6 FAIL can be piped to with a param object with multiple commands promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 7 FAIL multiple operations can be queued promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 8 FAIL plays well with fetch promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 9 FAIL abort() aborts write promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 10 10 -
trunk/LayoutTests/imported/w3c/web-platform-tests/file-system-access/sandboxed_FileSystemWritableFileStream-write.https.any-expected.txt
r283881 r285912 1 1 2 FAIL write() with an empty blob to an empty file promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"3 FAIL write() a blob to an empty file promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"4 FAIL write() with WriteParams without position to an empty file promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"5 FAIL write() a string to an empty file with zero offset promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"6 FAIL write() a blob to an empty file with zero offset promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"7 FAIL write() called consecutively appends promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"8 FAIL write() WriteParams without position and string appends promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"9 FAIL write() WriteParams without position and blob appends promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"10 FAIL write() called with a string and a valid offset promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"11 FAIL write() called with a blob and a valid offset promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"12 FAIL write() called with an offset beyond the end of the file promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"13 FAIL write() with an empty string to an empty file promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"14 FAIL write() with a valid utf-8 string promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"15 FAIL write() with a string with unix line ending preserved promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"16 FAIL write() with a string with windows line ending preserved promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"17 FAIL write() with an empty array buffer to an empty file promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"18 FAIL write() with a valid typed array buffer promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"19 FAIL atomic writes: close() fails when parent directory is removed promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"20 FAIL atomic writes: writable file streams make atomic changes on close promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"21 FAIL atomic writes: write() after close() fails promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"22 FAIL atomic writes: truncate() after close() fails promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"23 FAIL atomic writes: close() after close() fails promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"24 FAIL atomic writes: only one close() operation may succeed promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"25 FAIL atomic writes: writable file stream persists file on close, even if file is removed promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"26 FAIL getWriter() can be used promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"27 FAIL WriteParams: truncate missing size param promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"28 FAIL WriteParams: write missing data param promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"29 FAIL WriteParams: seek missing position param promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"30 FAIL write() with an invalid blob to an empty file should reject promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"2 FAIL write() with an empty blob to an empty file promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 3 FAIL write() a blob to an empty file promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 4 FAIL write() with WriteParams without position to an empty file promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 5 FAIL write() a string to an empty file with zero offset promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 6 FAIL write() a blob to an empty file with zero offset promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 7 FAIL write() called consecutively appends promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 8 FAIL write() WriteParams without position and string appends promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 9 FAIL write() WriteParams without position and blob appends promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 10 FAIL write() called with a string and a valid offset promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 11 FAIL write() called with a blob and a valid offset promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 12 FAIL write() called with an offset beyond the end of the file promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 13 FAIL write() with an empty string to an empty file promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 14 FAIL write() with a valid utf-8 string promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 15 FAIL write() with a string with unix line ending preserved promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 16 FAIL write() with a string with windows line ending preserved promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 17 FAIL write() with an empty array buffer to an empty file promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 18 FAIL write() with a valid typed array buffer promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 19 FAIL atomic writes: close() fails when parent directory is removed promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 20 FAIL atomic writes: writable file streams make atomic changes on close promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 21 FAIL atomic writes: write() after close() fails promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 22 FAIL atomic writes: truncate() after close() fails promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 23 FAIL atomic writes: close() after close() fails promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 24 FAIL atomic writes: only one close() operation may succeed promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 25 FAIL atomic writes: writable file stream persists file on close, even if file is removed promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 26 FAIL getWriter() can be used promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 27 FAIL WriteParams: truncate missing size param promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 28 FAIL WriteParams: write missing data param promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 29 FAIL WriteParams: seek missing position param promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 30 FAIL write() with an invalid blob to an empty file should reject promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 31 31 -
trunk/LayoutTests/imported/w3c/web-platform-tests/file-system-access/sandboxed_FileSystemWritableFileStream-write.https.any.worker-expected.txt
r283881 r285912 1 1 2 FAIL write() with an empty blob to an empty file promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"3 FAIL write() a blob to an empty file promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"4 FAIL write() with WriteParams without position to an empty file promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"5 FAIL write() a string to an empty file with zero offset promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"6 FAIL write() a blob to an empty file with zero offset promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"7 FAIL write() called consecutively appends promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"8 FAIL write() WriteParams without position and string appends promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"9 FAIL write() WriteParams without position and blob appends promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"10 FAIL write() called with a string and a valid offset promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"11 FAIL write() called with a blob and a valid offset promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"12 FAIL write() called with an offset beyond the end of the file promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"13 FAIL write() with an empty string to an empty file promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"14 FAIL write() with a valid utf-8 string promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"15 FAIL write() with a string with unix line ending preserved promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"16 FAIL write() with a string with windows line ending preserved promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"17 FAIL write() with an empty array buffer to an empty file promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"18 FAIL write() with a valid typed array buffer promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"19 FAIL atomic writes: close() fails when parent directory is removed promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"20 FAIL atomic writes: writable file streams make atomic changes on close promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"21 FAIL atomic writes: write() after close() fails promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"22 FAIL atomic writes: truncate() after close() fails promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"23 FAIL atomic writes: close() after close() fails promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"24 FAIL atomic writes: only one close() operation may succeed promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"25 FAIL atomic writes: writable file stream persists file on close, even if file is removed promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"26 FAIL getWriter() can be used promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"27 FAIL WriteParams: truncate missing size param promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"28 FAIL WriteParams: write missing data param promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"29 FAIL WriteParams: seek missing position param promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"30 FAIL write() with an invalid blob to an empty file should reject promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"2 FAIL write() with an empty blob to an empty file promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 3 FAIL write() a blob to an empty file promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 4 FAIL write() with WriteParams without position to an empty file promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 5 FAIL write() a string to an empty file with zero offset promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 6 FAIL write() a blob to an empty file with zero offset promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 7 FAIL write() called consecutively appends promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 8 FAIL write() WriteParams without position and string appends promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 9 FAIL write() WriteParams without position and blob appends promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 10 FAIL write() called with a string and a valid offset promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 11 FAIL write() called with a blob and a valid offset promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 12 FAIL write() called with an offset beyond the end of the file promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 13 FAIL write() with an empty string to an empty file promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 14 FAIL write() with a valid utf-8 string promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 15 FAIL write() with a string with unix line ending preserved promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 16 FAIL write() with a string with windows line ending preserved promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 17 FAIL write() with an empty array buffer to an empty file promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 18 FAIL write() with a valid typed array buffer promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 19 FAIL atomic writes: close() fails when parent directory is removed promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 20 FAIL atomic writes: writable file streams make atomic changes on close promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 21 FAIL atomic writes: write() after close() fails promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 22 FAIL atomic writes: truncate() after close() fails promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 23 FAIL atomic writes: close() after close() fails promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 24 FAIL atomic writes: only one close() operation may succeed promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 25 FAIL atomic writes: writable file stream persists file on close, even if file is removed promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 26 FAIL getWriter() can be used promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 27 FAIL WriteParams: truncate missing size param promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 28 FAIL WriteParams: write missing data param promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 29 FAIL WriteParams: seek missing position param promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 30 FAIL write() with an invalid blob to an empty file should reject promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 31 31 -
trunk/LayoutTests/imported/w3c/web-platform-tests/file-system-access/sandboxed_FileSystemWritableFileStream.https.any-expected.txt
r283881 r285912 1 1 2 FAIL truncate() to shrink a file promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"3 FAIL truncate() to grow a file promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"4 FAIL createWritable() fails when parent directory is removed promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"5 FAIL write() fails when parent directory is removed promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"6 FAIL truncate() fails when parent directory is removed promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"7 FAIL createWritable({keepExistingData: true}): atomic writable file stream initialized with source contents promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"8 FAIL createWritable({keepExistingData: false}): atomic writable file stream initialized with empty file promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"9 FAIL cursor position: truncate size > offset promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"10 FAIL cursor position: truncate size < offset promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"11 FAIL commands are queued, stream is unlocked after each operation promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"2 FAIL truncate() to shrink a file promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 3 FAIL truncate() to grow a file promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 4 FAIL createWritable() fails when parent directory is removed promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 5 FAIL write() fails when parent directory is removed promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 6 FAIL truncate() fails when parent directory is removed promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 7 FAIL createWritable({keepExistingData: true}): atomic writable file stream initialized with source contents promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 8 FAIL createWritable({keepExistingData: false}): atomic writable file stream initialized with empty file promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 9 FAIL cursor position: truncate size > offset promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 10 FAIL cursor position: truncate size < offset promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 11 FAIL commands are queued, stream is unlocked after each operation promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 12 12 -
trunk/LayoutTests/imported/w3c/web-platform-tests/file-system-access/sandboxed_FileSystemWritableFileStream.https.any.worker-expected.txt
r283881 r285912 1 1 2 FAIL truncate() to shrink a file promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"3 FAIL truncate() to grow a file promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"4 FAIL createWritable() fails when parent directory is removed promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"5 FAIL write() fails when parent directory is removed promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"6 FAIL truncate() fails when parent directory is removed promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"7 FAIL createWritable({keepExistingData: true}): atomic writable file stream initialized with source contents promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"8 FAIL createWritable({keepExistingData: false}): atomic writable file stream initialized with empty file promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"9 FAIL cursor position: truncate size > offset promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"10 FAIL cursor position: truncate size < offset promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"11 FAIL commands are queued, stream is unlocked after each operation promise_test: Unhandled rejection with value: object " NotSupportedError: getFile is not implemented"2 FAIL truncate() to shrink a file promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 3 FAIL truncate() to grow a file promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 4 FAIL createWritable() fails when parent directory is removed promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 5 FAIL write() fails when parent directory is removed promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 6 FAIL truncate() fails when parent directory is removed promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 7 FAIL createWritable({keepExistingData: true}): atomic writable file stream initialized with source contents promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 8 FAIL createWritable({keepExistingData: false}): atomic writable file stream initialized with empty file promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 9 FAIL cursor position: truncate size > offset promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 10 FAIL cursor position: truncate size < offset promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 11 FAIL commands are queued, stream is unlocked after each operation promise_test: Unhandled rejection with value: object "TypeError: handle.createWritable is not a function. (In 'handle.createWritable()', 'handle.createWritable' is undefined)" 12 12 -
trunk/Source/WebCore/ChangeLog
r285904 r285912 1 2021-11-16 Sihui Liu <sihui_liu@apple.com> 2 3 Implement FileSystemFileHandle.getFile() 4 https://bugs.webkit.org/show_bug.cgi?id=232716 5 <rdar://problem/85022453> 6 7 Reviewed by Youenn Fablet. 8 9 Spec: https://wicg.github.io/file-system-access/#api-filesystemfilehandle-getfile 10 11 Tests: storage/filesystemaccess/file-handle-getfile-worker.html 12 storage/filesystemaccess/file-handle-getfile.html 13 14 * Modules/filesystemaccess/FileSystemFileHandle.cpp: 15 (WebCore::FileSystemFileHandle::getFile): 16 * Modules/filesystemaccess/FileSystemStorageConnection.h: 17 * Modules/filesystemaccess/WorkerFileSystemStorageConnection.cpp: 18 (WebCore::WorkerFileSystemStorageConnection::scopeClosed): 19 (WebCore::WorkerFileSystemStorageConnection::didResolve): 20 (WebCore::WorkerFileSystemStorageConnection::getFile): 21 (WebCore::WorkerFileSystemStorageConnection::completeStringCallback): 22 * Modules/filesystemaccess/WorkerFileSystemStorageConnection.h: 23 1 24 2021-11-16 Nikolaos Mouchtaris <nmouchtaris@apple.com> 2 25 -
trunk/Source/WebCore/Modules/filesystemaccess/FileSystemFileHandle.cpp
r285566 r285912 49 49 void FileSystemFileHandle::getFile(DOMPromiseDeferred<IDLInterface<File>>&& promise) 50 50 { 51 promise.reject(Exception { NotSupportedError, "getFile is not implemented"_s }); 51 if (isClosed()) 52 return promise.reject(Exception { InvalidStateError, "Handle is closed" }); 53 54 connection().getFile(identifier(), [protectedThis = Ref { *this }, promise = WTFMove(promise)](auto result) mutable { 55 if (result.hasException()) 56 return promise.reject(result.releaseException()); 57 58 auto* context = protectedThis->scriptExecutionContext(); 59 if (!context) 60 return promise.reject(Exception { InvalidStateError, "Context has stopped"_s }); 61 62 promise.resolve(File::create(context, result.returnValue(), { }, protectedThis->name())); 63 }); 52 64 } 53 65 -
trunk/Source/WebCore/Modules/filesystemaccess/FileSystemStorageConnection.h
r285566 r285912 49 49 using GetHandleNamesCallback = CompletionHandler<void(ExceptionOr<Vector<String>>&&)>; 50 50 using GetHandleWithTypeCallback = CompletionHandler<void(ExceptionOr<std::pair<FileSystemHandleIdentifier, bool>>&&)>; 51 using StringCallback = CompletionHandler<void(ExceptionOr<String>&&)>; 51 52 52 53 virtual void closeHandle(FileSystemHandleIdentifier) = 0; … … 57 58 virtual void removeEntry(FileSystemHandleIdentifier, const String& name, bool deleteRecursively, VoidCallback&&) = 0; 58 59 virtual void resolve(FileSystemHandleIdentifier, FileSystemHandleIdentifier, ResolveCallback&&) = 0; 60 virtual void getFile(FileSystemHandleIdentifier, StringCallback&&) = 0; 59 61 virtual void createSyncAccessHandle(FileSystemHandleIdentifier, GetAccessHandleCallback&&) = 0; 60 62 virtual void close(FileSystemHandleIdentifier, FileSystemSyncAccessHandleIdentifier, VoidCallback&&) = 0; -
trunk/Source/WebCore/Modules/filesystemaccess/WorkerFileSystemStorageConnection.cpp
r285566 r285912 74 74 callback(Exception { InvalidStateError }); 75 75 76 auto stringCallbacks = std::exchange(m_stringCallbacks, { }); 77 for (auto& callback : stringCallbacks.values()) 78 callback(Exception { InvalidStateError }); 79 76 80 m_scope = nullptr; 77 81 } … … 200 204 { 201 205 if (auto callback = m_resolveCallbacks.take(callbackIdentifier)) 206 callback(WTFMove(result)); 207 } 208 209 void WorkerFileSystemStorageConnection::getFile(FileSystemHandleIdentifier identifier, StringCallback&& callback) 210 { 211 if (!m_scope) 212 return callback(Exception { InvalidStateError }); 213 214 auto callbackIdentifier = CallbackIdentifier::generateThreadSafe(); 215 m_stringCallbacks.add(callbackIdentifier, WTFMove(callback)); 216 217 callOnMainThread([callbackIdentifier, workerThread = Ref { m_scope->thread() }, mainThreadConnection = m_mainThreadConnection, identifier]() mutable { 218 auto mainThreadCallback = [callbackIdentifier, workerThread = WTFMove(workerThread)](auto result) mutable { 219 workerThread->runLoop().postTaskForMode([callbackIdentifier, result = crossThreadCopy(result)] (auto& scope) mutable { 220 if (auto connection = downcast<WorkerGlobalScope>(scope).fileSystemStorageConnection()) 221 connection->completeStringCallback(callbackIdentifier, WTFMove(result)); 222 }, WorkerRunLoop::defaultMode()); 223 }; 224 225 mainThreadConnection->getFile(identifier, WTFMove(mainThreadCallback)); 226 }); 227 } 228 229 void WorkerFileSystemStorageConnection::completeStringCallback(CallbackIdentifier callbackIdentifier, ExceptionOr<String>&& result) 230 { 231 if (auto callback = m_stringCallbacks.take(callbackIdentifier)) 202 232 callback(WTFMove(result)); 203 233 } -
trunk/Source/WebCore/Modules/filesystemaccess/WorkerFileSystemStorageConnection.h
r285566 r285912 48 48 void didGetHandle(CallbackIdentifier, ExceptionOr<FileSystemHandleIdentifier>&&); 49 49 void didResolve(CallbackIdentifier, ExceptionOr<Vector<String>>&&); 50 void completeStringCallback(CallbackIdentifier, ExceptionOr<String>&&); 50 51 void didCreateSyncAccessHandle(CallbackIdentifier, ExceptionOr<std::pair<FileSystemSyncAccessHandleIdentifier, FileSystem::PlatformFileHandle>>&&); 51 52 void completeVoidCallback(CallbackIdentifier, ExceptionOr<void>&& result); … … 66 67 void getHandleNames(FileSystemHandleIdentifier, GetHandleNamesCallback&&) final; 67 68 void getHandle(FileSystemHandleIdentifier, const String& name, GetHandleWithTypeCallback&&) final; 69 void getFile(FileSystemHandleIdentifier, StringCallback&&) final; 68 70 69 71 void createSyncAccessHandle(FileSystemHandleIdentifier, FileSystemStorageConnection::GetAccessHandleCallback&&) final; … … 79 81 HashMap<CallbackIdentifier, FileSystemStorageConnection::GetHandleNamesCallback> m_getHandleNamesCallbacks; 80 82 HashMap<CallbackIdentifier, FileSystemStorageConnection::GetHandleWithTypeCallback> m_getHandleWithTypeCallbacks; 83 HashMap<CallbackIdentifier, FileSystemStorageConnection::StringCallback> m_stringCallbacks; 81 84 }; 82 85 -
trunk/Source/WebKit/ChangeLog
r285911 r285912 1 2021-11-16 Sihui Liu <sihui_liu@apple.com> 2 3 Implement FileSystemFileHandle.getFile() 4 https://bugs.webkit.org/show_bug.cgi?id=232716 5 <rdar://problem/85022453> 6 7 Reviewed by Youenn Fablet. 8 9 Let web process send message to network process for file path. 10 11 * NetworkProcess/storage/NetworkStorageManager.cpp: 12 (WebKit::NetworkStorageManager::getFile): 13 * NetworkProcess/storage/NetworkStorageManager.h: 14 * NetworkProcess/storage/NetworkStorageManager.messages.in: 15 * WebProcess/WebCoreSupport/WebFileSystemStorageConnection.cpp: 16 (WebKit::WebFileSystemStorageConnection::getFile): 17 * WebProcess/WebCoreSupport/WebFileSystemStorageConnection.h: 18 1 19 2021-11-16 Per Arne Vollan <pvollan@apple.com> 2 20 -
trunk/Source/WebKit/NetworkProcess/storage/NetworkStorageManager.cpp
r285566 r285912 246 246 } 247 247 248 void NetworkStorageManager::getFile(WebCore::FileSystemHandleIdentifier identifier, CompletionHandler<void(Expected<String, FileSystemStorageError>)>&& completionHandler) 249 { 250 ASSERT(!RunLoop::isMain()); 251 252 auto handle = m_fileSystemStorageHandleRegistry->getHandle(identifier); 253 if (!handle) 254 return completionHandler(makeUnexpected(FileSystemStorageError::Unknown)); 255 256 completionHandler(handle->path()); 257 } 258 248 259 void NetworkStorageManager::createSyncAccessHandle(WebCore::FileSystemHandleIdentifier identifier, CompletionHandler<void(Expected<AccessHandleInfo, FileSystemStorageError>)>&& completionHandler) 249 260 { -
trunk/Source/WebKit/NetworkProcess/storage/NetworkStorageManager.h
r285566 r285912 77 77 void removeEntry(WebCore::FileSystemHandleIdentifier, const String& name, bool deleteRecursively, CompletionHandler<void(std::optional<FileSystemStorageError>)>&&); 78 78 void resolve(WebCore::FileSystemHandleIdentifier, WebCore::FileSystemHandleIdentifier, CompletionHandler<void(Expected<Vector<String>, FileSystemStorageError>)>&&); 79 void getFile(WebCore::FileSystemHandleIdentifier, CompletionHandler<void(Expected<String, FileSystemStorageError>)>&&); 79 80 80 81 using AccessHandleInfo = std::pair<WebCore::FileSystemSyncAccessHandleIdentifier, IPC::SharedFileHandle>; -
trunk/Source/WebKit/NetworkProcess/storage/NetworkStorageManager.messages.in
r285566 r285912 35 35 Resolve(WebCore::FileSystemHandleIdentifier identifier, WebCore::FileSystemHandleIdentifier targetIdentifier) -> (Expected<Vector<String>, WebKit::FileSystemStorageError> result) Async 36 36 Move(WebCore::FileSystemHandleIdentifier identifier, WebCore::FileSystemHandleIdentifier destinationIdentifier, String newName) -> (std::optional<WebKit::FileSystemStorageError> result) Async 37 GetFile(WebCore::FileSystemHandleIdentifier identifier) -> (Expected<String, WebKit::FileSystemStorageError> result) Async 37 38 38 39 CreateSyncAccessHandle(WebCore::FileSystemHandleIdentifier identifier) -> (Expected<std::pair<WebCore::FileSystemSyncAccessHandleIdentifier, IPC::SharedFileHandle>, WebKit::FileSystemStorageError> result) Async -
trunk/Source/WebKit/WebProcess/WebCoreSupport/WebFileSystemStorageConnection.cpp
r285566 r285912 121 121 } 122 122 123 void WebFileSystemStorageConnection::getFile(WebCore::FileSystemHandleIdentifier identifier, StringCallback&& completionHandler) 124 { 125 if (!m_connection) 126 return completionHandler(WebCore::Exception { WebCore::UnknownError, "Connection is lost" }); 127 128 m_connection->sendWithAsyncReply(Messages::NetworkStorageManager::GetFile(identifier), [completionHandler = WTFMove(completionHandler)](auto result) mutable { 129 if (!result) 130 return completionHandler(convertToException(result.error())); 131 132 completionHandler(WTFMove(result.value())); 133 }); 134 } 135 123 136 void WebFileSystemStorageConnection::createSyncAccessHandle(WebCore::FileSystemHandleIdentifier identifier, WebCore::FileSystemStorageConnection::GetAccessHandleCallback&& completionHandler) 124 137 { -
trunk/Source/WebKit/WebProcess/WebCoreSupport/WebFileSystemStorageConnection.h
r285566 r285912 82 82 void getHandleNames(WebCore::FileSystemHandleIdentifier, FileSystemStorageConnection::GetHandleNamesCallback&&) final; 83 83 void getHandle(WebCore::FileSystemHandleIdentifier, const String& name, FileSystemStorageConnection::GetHandleWithTypeCallback&&) final; 84 void getFile(WebCore::FileSystemHandleIdentifier, StringCallback&&) final; 84 85 85 86 void createSyncAccessHandle(WebCore::FileSystemHandleIdentifier, WebCore::FileSystemStorageConnection::GetAccessHandleCallback&&) final;
Note: See TracChangeset
for help on using the changeset viewer.