summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2023-10-25 18:20:53 +0200
committerMoonchild <moonchild@palemoon.org>2023-10-25 18:20:53 +0200
commit98c3aa57431c4b158c750dfabfd0ab90708ebf16 (patch)
treea151112c146ec8a110785b2628d8252e6b27aa20
parent2c2ddd98d2923449b5998f3e1f829b6b524352ef (diff)
downloaduxp-98c3aa57431c4b158c750dfabfd0ab90708ebf16.tar.gz
[XPCOM] Add several app/msi file types to the executables list (Win).
This errs on the side of caution for what are installer packages, but people getting conned into thinking this is safe is a bit too common. They are akin in danger to .exe files in that respect as it installs software, and should be treated similarly, so, warn about the potential danger.
-rw-r--r--xpcom/io/nsLocalFileWin.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/xpcom/io/nsLocalFileWin.cpp b/xpcom/io/nsLocalFileWin.cpp
index e5a0131a77..a86d468775 100644
--- a/xpcom/io/nsLocalFileWin.cpp
+++ b/xpcom/io/nsLocalFileWin.cpp
@@ -3016,6 +3016,8 @@ nsLocalFile::IsExecutable(bool* aResult)
"air", // Adobe AIR installer
"app", // executable application
"application", // from bug 348763
+ "appx",
+ "appxbundle",
"asp",
"bas",
"bat",
@@ -3058,6 +3060,8 @@ nsLocalFile::IsExecutable(bool* aResult)
"msh", // Microsoft Shell
"mshxml", // Microsoft Shell
"msi",
+ "msix",
+ "msixbundle",
"msp",
"mst",
"ops", // Office Profile Settings