Bug 1274959 - Support symlinks in Directory API - part 1 - Directory.getFilesAndDirectories, r=smaug
authorAndrea Marchesini <amarchesini@mozilla.com>
Sat, 23 Jul 2016 10:34:43 +0200
changeset 346475 3f1e16d3bfb2931d9a2c9f5b219726ba940d35d3
parent 346474 ad0b8a6f047d0a044584f00e2058c0e685b7f748
child 346476 c2462f5e5e38b4fc69103bab2756a08a5e914c43
push id6389
push userraliiev@mozilla.com
push dateMon, 19 Sep 2016 13:38:22 +0000
treeherdermozilla-beta@01d67bfe6c81 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssmaug
bugs1274959
milestone50.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1274959 - Support symlinks in Directory API - part 1 - Directory.getFilesAndDirectories, r=smaug
dom/filesystem/GetDirectoryListingTask.cpp
--- a/dom/filesystem/GetDirectoryListingTask.cpp
+++ b/dom/filesystem/GetDirectoryListingTask.cpp
@@ -360,20 +360,19 @@ GetDirectoryListingTaskParent::IOWork()
     nsCOMPtr<nsISupports> supp;
     if (NS_WARN_IF(NS_FAILED(entries->GetNext(getter_AddRefs(supp))))) {
       break;
     }
 
     nsCOMPtr<nsIFile> currFile = do_QueryInterface(supp);
     MOZ_ASSERT(currFile);
 
-    bool isLink, isSpecial, isFile;
-    if (NS_WARN_IF(NS_FAILED(currFile->IsSymlink(&isLink)) ||
-                   NS_FAILED(currFile->IsSpecial(&isSpecial))) ||
-        isLink || isSpecial) {
+    bool isSpecial, isFile;
+    if (NS_WARN_IF(NS_FAILED(currFile->IsSpecial(&isSpecial))) ||
+        isSpecial) {
       continue;
     }
     if (NS_WARN_IF(NS_FAILED(currFile->IsFile(&isFile)) ||
                    NS_FAILED(currFile->IsDirectory(&isDir))) ||
         !(isFile || isDir)) {
       continue;
     }