diff options
author | torne@chromium.org <torne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-02 11:42:08 +0000 |
---|---|---|
committer | torne@chromium.org <torne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-02 11:42:08 +0000 |
commit | bdbda7250294761efc1cf9c15e0cd11478d448cb (patch) | |
tree | cd417ee7a55722964aaff59a40315400020de91a /net | |
parent | 74740abb3646723ec9aad2be86204ed93425a8ad (diff) | |
download | chromium_src-bdbda7250294761efc1cf9c15e0cd11478d448cb.zip chromium_src-bdbda7250294761efc1cf9c15e0cd11478d448cb.tar.gz chromium_src-bdbda7250294761efc1cf9c15e0cd11478d448cb.tar.bz2 |
Don't render CSV or TSV files inline.
Add comma and tab separated values to the list of text MIME types that
will not be rendered inline. These are hard to read as a straight
textual rendering and the user almost certainly intends to open them in
a spreadsheet program or import them into some other app.
BUG=152911
Review URL: https://chromiumcodereview.appspot.com/11022006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@159673 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net')
-rw-r--r-- | net/base/mime_util.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/net/base/mime_util.cc b/net/base/mime_util.cc index f010862..35093da 100644 --- a/net/base/mime_util.cc +++ b/net/base/mime_util.cc @@ -359,6 +359,10 @@ static const char* const unsupported_text_types[] = { "text/x-csv", "text/x-vcf", "text/rtf", + "text/comma-separated-values", + "text/csv", + "text/tab-separated-values", + "text/tsv", }; // Mozilla 1.8 and WinIE 7 both accept text/javascript and text/ecmascript. |