gecko-dev/dom/filesystem
Andrew Sutherland f08e08b87c Bug 1813299 - Filter out symlinks for webkitdirectory. r=smaug
This is effectively a backout of the following patches from Bug 1274959 except
we add comments and test coverage:
- Part 1 which made the DirectoryListingTask include symlinks in the results
  as exposed by Directory.getFilesAndDirectories.
  https://hg.mozilla.org/mozilla-central/rev/3f1e16d3bfb2
- Part 3 which made GetFilesHelper include symlinks in the results.
  https://hg.mozilla.org/mozilla-central/rev/e28c3a696524

Test coverage for getFilesAndDirectories is provided by
dom/filesystem/tests/test_basic.html by way of changes to its included file
dom/filesystem/tests/filesystem_commons.js and changes to the createTreeFile
helper in dom/filesystem/tests/script_fileList.js.

Test coverage for GetFilesHelper is provided by
dom/filesystem/tests/test_webkitdirectory.html and changes to the
createTestFile helper in dom/filesystem/tests/script_fileList.js.

Commenting out either of the `isLink` test in the relevant C++ code will cause
the given tests to fail on non-windows platforms.

Differential Revision: https://phabricator.services.mozilla.com/D178894
2023-06-07 00:15:13 +00:00
..
compat
tests Bug 1813299 - Filter out symlinks for webkitdirectory. r=smaug 2023-06-07 00:15:13 +00:00
Directory.cpp
Directory.h
FileSystemBase.cpp
FileSystemBase.h
FileSystemRequestParent.cpp Bug 1826734 - Replace mozilla::Unused with (void) in dom/{file,filesystem} r=dom-storage-reviewers,asuth 2023-05-22 12:21:43 +00:00
FileSystemRequestParent.h
FileSystemSecurity.cpp
FileSystemSecurity.h
FileSystemTaskBase.cpp Bug 1826734 - Replace mozilla::Unused with (void) in dom/{file,filesystem} r=dom-storage-reviewers,asuth 2023-05-22 12:21:43 +00:00
FileSystemTaskBase.h
FileSystemUtils.cpp
FileSystemUtils.h
GetDirectoryListingTask.cpp Bug 1813299 - Filter out symlinks for webkitdirectory. r=smaug 2023-06-07 00:15:13 +00:00
GetDirectoryListingTask.h
GetFileOrDirectoryTask.cpp
GetFileOrDirectoryTask.h
GetFilesHelper.cpp Bug 1813299 - Filter out symlinks for webkitdirectory. r=smaug 2023-06-07 00:15:13 +00:00
GetFilesHelper.h Bug 1813299 - Filter out symlinks for webkitdirectory. r=smaug 2023-06-07 00:15:13 +00:00
GetFilesTask.cpp
GetFilesTask.h
moz.build
OSFileSystem.cpp
OSFileSystem.h
PFileSystemParams.ipdlh
PFileSystemRequest.ipdl