mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-24 16:17:29 +09:00
[XPCOM] Add Mac-specific executable extensions
This commit is contained in:
parent
5e12078904
commit
80b542efc3
1 changed files with 16 additions and 0 deletions
|
|
@ -1516,6 +1516,22 @@ nsLocalFile::IsExecutable(bool* aResult)
|
||||||
|
|
||||||
// Search for any of the set of executable extensions.
|
// Search for any of the set of executable extensions.
|
||||||
static const char* const executableExts[] = {
|
static const char* const executableExts[] = {
|
||||||
|
#ifdef MOZ_WIDGET_COCOA
|
||||||
|
"afploc", // Can point to other files.
|
||||||
|
"atloc", // Can point to other files.
|
||||||
|
"fileloc", // File location files can be used to point to other
|
||||||
|
// files.
|
||||||
|
"ftploc", // Can point to other files.
|
||||||
|
"inetloc", // Shouldn't be able to do the same, but can, due to
|
||||||
|
// macOS vulnerabilities.
|
||||||
|
"atloc", // Can point to other files.
|
||||||
|
"fileloc", // File location files can be used to point to other
|
||||||
|
// files.
|
||||||
|
"ftploc", // Can point to other files.
|
||||||
|
"inetloc", // Shouldn't be able to do the same, but can, due to
|
||||||
|
// macOS vulnerabilities.
|
||||||
|
"terminal", // macOS Terminal app configuration files
|
||||||
|
#endif
|
||||||
"air", // Adobe AIR installer
|
"air", // Adobe AIR installer
|
||||||
"jar" // java application bundle
|
"jar" // java application bundle
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue