Chromium Code Reviews| 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; |
| } |