Bug 1302211 - Remove .osx extension from download protection. r?gcp
https://bugs.chromium.org/p/chromium/issues/detail?id=641614
MozReview-Commit-ID: 6m3bKNlnjIv
--- a/toolkit/components/downloads/ApplicationReputation.cpp
+++ b/toolkit/components/downloads/ApplicationReputation.cpp
@@ -526,17 +526,16 @@ PendingLookup::IsBinaryFile()
StringEndsWith(fileName, NS_LITERAL_STRING(".mshxml")) || // Windows
StringEndsWith(fileName, NS_LITERAL_STRING(".msi")) || // Windows installer
StringEndsWith(fileName, NS_LITERAL_STRING(".msp")) || // Windows installer
StringEndsWith(fileName, NS_LITERAL_STRING(".mst")) || // Windows installer
StringEndsWith(fileName, NS_LITERAL_STRING(".ndif")) || // Mac disk image
//StringEndsWith(fileName, NS_LITERAL_STRING(".ntfs")) || // 7z
StringEndsWith(fileName, NS_LITERAL_STRING(".ocx")) || // ActiveX
StringEndsWith(fileName, NS_LITERAL_STRING(".ops")) || // MS Office
- StringEndsWith(fileName, NS_LITERAL_STRING(".osx")) || // Mac PowerPC executable
StringEndsWith(fileName, NS_LITERAL_STRING(".out")) || // Linux binary
StringEndsWith(fileName, NS_LITERAL_STRING(".paf")) || // PortableApps package
//StringEndsWith(fileName, NS_LITERAL_STRING(".paq8f")) ||
//StringEndsWith(fileName, NS_LITERAL_STRING(".paq8jd")) ||
//StringEndsWith(fileName, NS_LITERAL_STRING(".paq8l")) ||
//StringEndsWith(fileName, NS_LITERAL_STRING(".paq8o")) ||
StringEndsWith(fileName, NS_LITERAL_STRING(".partial")) || // Downloads
//StringEndsWith(fileName, NS_LITERAL_STRING(".pax")) ||
@@ -700,17 +699,16 @@ PendingLookup::GetDownloadType(const nsA
StringEndsWith(aFilename, NS_LITERAL_STRING(".dmg")) ||
StringEndsWith(aFilename, NS_LITERAL_STRING(".dmgpart")) ||
StringEndsWith(aFilename, NS_LITERAL_STRING(".dvdr")) ||
StringEndsWith(aFilename, NS_LITERAL_STRING(".img")) ||
StringEndsWith(aFilename, NS_LITERAL_STRING(".imgpart")) ||
StringEndsWith(aFilename, NS_LITERAL_STRING(".iso")) ||
StringEndsWith(aFilename, NS_LITERAL_STRING(".mpkg")) ||
StringEndsWith(aFilename, NS_LITERAL_STRING(".ndif")) ||
- StringEndsWith(aFilename, NS_LITERAL_STRING(".osx")) ||
StringEndsWith(aFilename, NS_LITERAL_STRING(".pkg")) ||
StringEndsWith(aFilename, NS_LITERAL_STRING(".smi")) ||
StringEndsWith(aFilename, NS_LITERAL_STRING(".sparsebundle")) ||
StringEndsWith(aFilename, NS_LITERAL_STRING(".sparseimage")) ||
StringEndsWith(aFilename, NS_LITERAL_STRING(".toast")) ||
StringEndsWith(aFilename, NS_LITERAL_STRING(".udif"))) {
return ClientDownloadRequest::MAC_EXECUTABLE;
}