summaryrefslogtreecommitdiffstats
path: root/chrome/browser/download
diff options
context:
space:
mode:
authorabarth@chromium.org <abarth@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-04 17:00:53 +0000
committerabarth@chromium.org <abarth@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-04 17:00:53 +0000
commitd7c9aa4a59dbf6981f1edcfaa9fac0af4df44b0c (patch)
treeff6829f6c81f05a5544cfc39cc1e5ec9cd27456e /chrome/browser/download
parentd8132ccdf977f9ace2595111d12292b019d7bd0d (diff)
downloadchromium_src-d7c9aa4a59dbf6981f1edcfaa9fac0af4df44b0c.zip
chromium_src-d7c9aa4a59dbf6981f1edcfaa9fac0af4df44b0c.tar.gz
chromium_src-d7c9aa4a59dbf6981f1edcfaa9fac0af4df44b0c.tar.bz2
Tell the user that HTML documents can harm their computer because they can.
This patch blocks all the extensions that we register. R=nsylvain BUG=1463961 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@4603 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/download')
-rw-r--r--chrome/browser/download/download_exe.cc9
1 files changed, 8 insertions, 1 deletions
diff --git a/chrome/browser/download/download_exe.cc b/chrome/browser/download/download_exe.cc
index ce33781..e54b485 100644
--- a/chrome/browser/download/download_exe.cc
+++ b/chrome/browser/download/download_exe.cc
@@ -72,6 +72,8 @@ static const wchar_t* const g_executables[] = {
L"fxp",
L"hlp",
L"hta",
+ L"htm",
+ L"html",
L"inf",
L"ins",
L"isp",
@@ -115,6 +117,8 @@ static const wchar_t* const g_executables[] = {
L"sct",
L"shb",
L"shs",
+ L"shtm",
+ L"shtml",
L"url",
L"vb",
L"vbe",
@@ -127,7 +131,10 @@ static const wchar_t* const g_executables[] = {
L"ws",
L"wsc",
L"wsf",
- L"wsh"
+ L"wsh",
+ L"xht",
+ L"xhtm",
+ L"xhtml"
};
void InitializeExeTypes(std::set<std::wstring>* exe_extensions) {