Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(557)

Unified Diff: net/base/mime_util.cc

Issue 125058: Included text/css content type into list of the supported non image files. ... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « AUTHORS ('k') | webkit/glue/mimetype_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/mime_util.cc
===================================================================
--- net/base/mime_util.cc (revision 18286)
+++ net/base/mime_util.cc (working copy)
@@ -37,7 +37,7 @@
bool MatchesMimeType(const std::string &mime_type_pattern,
const std::string &mime_type) const;
-private:
+ private:
friend struct DefaultSingletonTraits<MimeUtil>;
MimeUtil() {
InitializeMimeTypeMaps();
@@ -52,7 +52,7 @@
MimeMappings non_image_map_;
MimeMappings javascript_map_;
MimeMappings view_source_map_;
-}; // class MimeUtil
+}; // class MimeUtil
struct MimeInfo {
const char* mime_type;
@@ -196,8 +196,14 @@
"text/xml",
"text/xsl",
"text/plain",
+ // Many users complained about css files served for
+ // download instead of displaying in the browser:
+ // http://code.google.com/p/chromium/issues/detail?id=7192
+ // So, by including "text/css" into this list we choose Firefox
+ // behavior - css files will be displayed:
+ "text/css",
"text/",
- "image/svg+xml", // SVG is text-based XML, even though it has an image/ type
+ "image/svg+xml", // SVG is text-based XML, even though it has an image/ type
"application/xml",
"application/xhtml+xml",
"application/rss+xml",
« no previous file with comments | « AUTHORS ('k') | webkit/glue/mimetype_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698