Changeset 290998 in webkit
- Timestamp:
- Mar 8, 2022 10:40:08 AM (4 months ago)
- Location:
- trunk
- Files:
-
- 7 edited
-
LayoutTests/imported/w3c/ChangeLog (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-removeEntry.https.any-expected.txt (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/file-system-access/sandboxed_FileSystemDirectoryHandle-removeEntry.https.any.worker-expected.txt (modified) (1 diff)
-
Source/WebKit/ChangeLog (modified) (1 diff)
-
Source/WebKit/NetworkProcess/storage/FileSystemStorageHandle.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/imported/w3c/ChangeLog
r290995 r290998 1 2022-03-08 Sihui Liu <sihui_liu@apple.com> 2 3 File System Access: disallow empty name in FileSystemHandle 4 https://bugs.webkit.org/show_bug.cgi?id=237563 5 6 Reviewed by Youenn Fablet. 7 8 * web-platform-tests/file-system-access/sandboxed_FileSystemDirectoryHandle-getDirectoryHandle.https.any-expected.txt: 9 * web-platform-tests/file-system-access/sandboxed_FileSystemDirectoryHandle-getDirectoryHandle.https.any.worker-expected.txt: 10 * web-platform-tests/file-system-access/sandboxed_FileSystemDirectoryHandle-removeEntry.https.any-expected.txt: 11 * web-platform-tests/file-system-access/sandboxed_FileSystemDirectoryHandle-removeEntry.https.any.worker-expected.txt: 12 1 13 2022-03-08 Alex Christensen <achristensen@webkit.org> 2 14 -
trunk/LayoutTests/imported/w3c/web-platform-tests/file-system-access/sandboxed_FileSystemDirectoryHandle-getDirectoryHandle.https.any-expected.txt
r290765 r290998 5 5 PASS getDirectoryHandle(create=true) returns existing directories without erasing 6 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 FAIL getDirectoryHandle() with empty name assert_unreached: Should have rejected: undefined Reached unreachable code7 PASS getDirectoryHandle() with empty name 8 8 PASS getDirectoryHandle() with "." name 9 9 PASS getDirectoryHandle() with ".." name -
trunk/LayoutTests/imported/w3c/web-platform-tests/file-system-access/sandboxed_FileSystemDirectoryHandle-getDirectoryHandle.https.any.worker-expected.txt
r290765 r290998 5 5 PASS getDirectoryHandle(create=true) returns existing directories without erasing 6 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 FAIL getDirectoryHandle() with empty name assert_unreached: Should have rejected: undefined Reached unreachable code7 PASS getDirectoryHandle() with empty name 8 8 PASS getDirectoryHandle() with "." name 9 9 PASS getDirectoryHandle() with ".." name -
trunk/LayoutTests/imported/w3c/web-platform-tests/file-system-access/sandboxed_FileSystemDirectoryHandle-removeEntry.https.any-expected.txt
r290765 r290998 5 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 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 FAIL removeEntry() with empty name should fail assert_unreached: Should have rejected: undefined Reached unreachable code 7 PASS removeEntry() with empty name should fail 8 8 PASS removeEntry() with "." name should fail 9 9 PASS removeEntry() with ".." name should fail -
trunk/LayoutTests/imported/w3c/web-platform-tests/file-system-access/sandboxed_FileSystemDirectoryHandle-removeEntry.https.any.worker-expected.txt
r290765 r290998 5 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 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 FAIL removeEntry() with empty name should fail assert_unreached: Should have rejected: undefined Reached unreachable code 7 PASS removeEntry() with empty name should fail 8 8 PASS removeEntry() with "." name should fail 9 9 PASS removeEntry() with ".." name should fail -
trunk/Source/WebKit/ChangeLog
r290996 r290998 1 2022-03-08 Sihui Liu <sihui_liu@apple.com> 2 3 File System Access: disallow empty name in FileSystemHandle 4 https://bugs.webkit.org/show_bug.cgi?id=237563 5 6 Reviewed by Youenn Fablet. 7 8 Updated expectations of imported wpt tests. 9 10 * NetworkProcess/storage/FileSystemStorageHandle.cpp: 11 (WebKit::isValidFileName): 12 1 13 2022-03-08 Alex Christensen <achristensen@webkit.org> 2 14 -
trunk/Source/WebKit/NetworkProcess/storage/FileSystemStorageHandle.cpp
r290765 r290998 85 85 static bool isValidFileName(const String& name) 86 86 { 87 return name != "." && name != ".." && !name.contains(pathSeparator);87 return !name.isEmpty() && name != "." && name != ".." && !name.contains(pathSeparator); 88 88 } 89 89
Note: See TracChangeset
for help on using the changeset viewer.