From b8b5959de907b32fc30b51f54c5783e1e05db037 Mon Sep 17 00:00:00 2001 From: Marco Bonardo Date: Fri, 7 Jul 2023 09:21:50 +0000 Subject: [PATCH] Bug 1840777. r=mtigley,Gijs Differential Revision: https://phabricator.services.mozilla.com/D182711 --- .../components/reputationservice/ApplicationReputation.cpp | 2 +- toolkit/components/reputationservice/ApplicationReputation.h | 4 ++-- xpcom/io/nsLocalFileCommon.cpp | 1 + xpcom/io/nsLocalFileCommon.h | 4 ++-- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/toolkit/components/reputationservice/ApplicationReputation.cpp b/toolkit/components/reputationservice/ApplicationReputation.cpp index 829b47786ed5..939cd6701a40 100644 --- a/toolkit/components/reputationservice/ApplicationReputation.cpp +++ b/toolkit/components/reputationservice/ApplicationReputation.cpp @@ -180,7 +180,7 @@ const char* const ApplicationReputationService::kBinaryFileExtensions[] = { //".app", exec // Executable application ".applescript", //".application", exec // MS ClickOnce - ".appref-ms", // MS ClickOnce + //".appref-ms", exec // MS ClickOnce //".arc", //".arj", ".as", // Mac archive diff --git a/toolkit/components/reputationservice/ApplicationReputation.h b/toolkit/components/reputationservice/ApplicationReputation.h index c248ead3a7b9..b66d72f5ed5c 100644 --- a/toolkit/components/reputationservice/ApplicationReputation.h +++ b/toolkit/components/reputationservice/ApplicationReputation.h @@ -27,9 +27,9 @@ class ApplicationReputationService final public: static const char* const kNonBinaryExecutables[5]; #ifdef XP_WIN - static const char* const kBinaryFileExtensions[187]; -#else static const char* const kBinaryFileExtensions[186]; +#else + static const char* const kBinaryFileExtensions[185]; #endif static already_AddRefed GetSingleton(); diff --git a/xpcom/io/nsLocalFileCommon.cpp b/xpcom/io/nsLocalFileCommon.cpp index 126a4580e93d..9a6de2b4162b 100644 --- a/xpcom/io/nsLocalFileCommon.cpp +++ b/xpcom/io/nsLocalFileCommon.cpp @@ -41,6 +41,7 @@ const char* const sExecutableExts[] = { ".air", // Adobe AIR installer ".app", // executable application ".application", // from bug 348763 + ".appref-ms", // ClickOnce link ".asp", ".atloc", // Appletalk Location ".bas", diff --git a/xpcom/io/nsLocalFileCommon.h b/xpcom/io/nsLocalFileCommon.h index 572613ed1c82..be50354eeb9b 100644 --- a/xpcom/io/nsLocalFileCommon.h +++ b/xpcom/io/nsLocalFileCommon.h @@ -8,9 +8,9 @@ #define _NS_LOCAL_FILE_COMMON_H_ #ifdef MOZ_ESR -extern const char* const sExecutableExts[101]; -#else extern const char* const sExecutableExts[102]; +#else +extern const char* const sExecutableExts[103]; #endif #endif