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

Unified Diff: webkit/glue/webframeloaderclient_impl.cc

Issue 344030: Handle the fact that MIMETypeRegistry::getMIMETypeForPath returns... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/webframeloaderclient_impl.cc
===================================================================
--- webkit/glue/webframeloaderclient_impl.cc (revision 30554)
+++ webkit/glue/webframeloaderclient_impl.cc (working copy)
@@ -1283,7 +1283,9 @@
if (extension_pos >= 0)
mime_type = MIMETypeRegistry::getMIMETypeForPath(url.path());
- if (mime_type.isEmpty())
+ // MIMETypeRegistry::getMIMETypeForPath returns application/octet-stream
+ // when it can't find a MIME type for the path.
+ if (mime_type.isEmpty() || mime_type == "application/octet-stream")
Victor Wang 2009/10/30 18:44:28 what if the path is a binary file. getMIMETypeForP
return ObjectContentFrame;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698