Bug 1596668, r=spohl, a=RyanVM
authorGijs Kruitbosch <gijskruitbosch@gmail.com>
Sat, 11 Jan 2020 16:04:19 +0000
changeset 524417 27f71a0b7aa25c9e17bd0e9eebbd9ffab2df6b81
parent 524416 1d4968094d070defcc183b6587fe8594f385b8b6
child 524418 83b95131e4d6ea0c68b03f5f82f38de66147c99a
push id765
push userryanvm@gmail.com
push dateTue, 14 Jan 2020 22:56:39 +0000
treeherdermozilla-esr68@3b3f5444c547 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersspohl, RyanVM
bugs1596668
milestone68.5.0
Bug 1596668, r=spohl, a=RyanVM Differential Revision: https://phabricator.services.mozilla.com/D58206
xpcom/io/nsLocalFileUnix.cpp
--- a/xpcom/io/nsLocalFileUnix.cpp
+++ b/xpcom/io/nsLocalFileUnix.cpp
@@ -1522,17 +1522,20 @@ nsLocalFile::IsExecutable(bool* aResult)
     char16_t* p = path.BeginWriting();
     for (p += dotIdx + 1; *p; ++p) {
       *p += (*p >= L'A' && *p <= L'Z') ? 'a' - 'A' : 0;
     }
 
     // Search for any of the set of executable extensions.
     static const char* const executableExts[] = {
         "air",  // Adobe AIR installer
-        "jar"   // java application bundle
+#ifdef MOZ_WIDGET_COCOA
+        "fileloc",  // File location files can be used to point to other files.
+#endif
+        "jar"  // java application bundle
     };
     nsDependentSubstring ext = Substring(path, dotIdx + 1);
     for (auto executableExt : executableExts) {
       if (ext.EqualsASCII(executableExt)) {
         // Found a match.  Set result and quit.
         *aResult = true;
         return NS_OK;
       }