Bug 1435435 - Add new binary extensions to download protection. r?gcp draft
authorFrancois Marier <francois@mozilla.com>
Fri, 02 Feb 2018 16:09:48 -0800
changeset 750862 a06a28cb7339e38fef1e702585dfefba8a8e789c
parent 748899 fd995039d89708923b5673ecebc652967d40bd4e
push id97767
push userfmarier@mozilla.com
push dateSat, 03 Feb 2018 00:21:41 +0000
reviewersgcp
bugs1435435
milestone60.0a1
Bug 1435435 - Add new binary extensions to download protection. r?gcp Sync up with the Chrome list and add new BitTorrent, Visio and HTML-like file extensions. https://cs.chromium.org/chromium/src/chrome/browser/resources/safe_browsing/download_file_types.asciipb MozReview-Commit-ID: Alh2hrOZy1h
toolkit/components/reputationservice/ApplicationReputation.cpp
--- a/toolkit/components/reputationservice/ApplicationReputation.cpp
+++ b/toolkit/components/reputationservice/ApplicationReputation.cpp
@@ -421,16 +421,21 @@ static const char* const kBinaryFileExte
     ".asx", // Windows Media Player
     //".b64",
     //".balz",
     ".bas", // Basic script
     ".bash", // Linux shell
     ".bat", // Windows shell
     //".bhx",
     //".bin",
+    ".btapp", // uTorrent and Transmission
+    ".btinstall", // uTorrent and Transmission
+    ".btkey", // uTorrent and Transmission
+    ".btsearch", // uTorrent and Transmission
+    ".btskin", // uTorrent and Transmission
     ".bz", // Linux archive (bzip)
     ".bz2", // Linux archive (bzip2)
     ".bzip2", // Linux archive (bzip2)
     ".cab", // Windows archive
     ".cdr", // Mac disk image
     ".cfg", // Windows
     ".chi", // Windows Help
     ".chm", // Windows Help
@@ -443,16 +448,19 @@ static const char* const kBinaryFileExte
     ".cpl", // Windows executable
     ".crt", // Windows signed certificate
     ".crx", // Chrome extensions
     ".csh", // Linux shell
     ".dart", // Mac disk image
     ".dc42", // Apple DiskCopy Image
     ".deb", // Linux package
     ".dex", // Android
+    ".dhtml", // HTML
+    ".dhtm", // HTML
+    ".dht", // HTML
     ".diskcopy42", // Apple DiskCopy Image
     ".dll", // Windows executable
     ".dmg", // Mac disk image
     ".dmgpart", // Mac disk image
     //".docb", // MS Office
     //".docm", // MS Word
     //".docx", // MS Word
     //".dotm", // MS Word
@@ -614,16 +622,19 @@ static const char* const kBinaryFileExte
     ".scf", // Windows shell
     ".scr", // Windows
     ".sct", // Windows shell
     ".search-ms", // Windows
     ".sh", // Linux shell
     ".shar", // Linux shell
     ".shb", // Windows
     ".shs", // Windows shell
+    ".shtml", // HTML
+    ".shtm", // HTML
+    ".sht", // HTML
     //".sldm", // MS PowerPoint
     //".sldx", // MS PowerPoint
     ".slp", // Linux package
     ".smi", // Mac disk image
     ".sparsebundle", // Mac disk image
     ".sparseimage", // Mac disk image
     ".spl", // Adobe Flash
     //".squashfs",
@@ -633,38 +644,47 @@ static const char* const kBinaryFileExte
     ".sys", // Windows
     ".tar", // Linux archive
     ".taz", // Linux archive (bzip2)
     ".tbz", // Linux archive (bzip2)
     ".tbz2", // Linux archive (bzip2)
     ".tcsh", // Linux shell
     ".tgz", // Linux archive (gzip)
     //".toast", // Roxio disk image
-    //".torrent", // Bittorrent
+    ".torrent", // Bittorrent
     ".tpz", // Linux archive (gzip)
     ".txz", // Linux archive (xz)
     ".tz", // Linux archive (gzip)
     //".u3p", // U3 Smart Apps
     ".udf", // MS Excel
     ".udif", // Mac disk image
     ".url", // Windows
     //".uu",
     //".uue",
     ".vb", // Visual Basic script
     ".vbe", // Visual Basic script
     ".vbs", // Visual Basic script
     //".vbscript", // Visual Basic script
+    ".vdx", // MS Visio
     ".vhd", // Windows virtual hard drive
     ".vhdx", // Windows virtual hard drive
     ".vmdk", // VMware virtual disk
     ".vsd", // MS Visio
+    ".vsdm", // MS Visio
+    ".vsdx", // MS Visio
     ".vsmacros", // MS Visual Studio
     ".vss", // MS Visio
+    ".vssm", // MS Visio
+    ".vssx", // MS Visio
     ".vst", // MS Visio
+    ".vstm", // MS Visio
+    ".vstx", // MS Visio
     ".vsw", // MS Visio
+    ".vsx", // MS Visio
+    ".vtx", // MS Visio
     ".website",  // Windows
     ".wim", // Windows Imaging
     //".workflow", // Mac Automator
     //".wrc", // FreeArc archive
     ".ws", // Windows script
     ".wsc", // Windows script
     ".wsf", // Windows script
     ".wsh", // Windows script