diff options
-rw-r--r-- | chrome/browser/dom_ui/dom_ui_contents.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/chrome/browser/dom_ui/dom_ui_contents.h b/chrome/browser/dom_ui/dom_ui_contents.h index 58daf01..6f8bcb3 100644 --- a/chrome/browser/dom_ui/dom_ui_contents.h +++ b/chrome/browser/dom_ui/dom_ui_contents.h @@ -25,8 +25,9 @@ class FavIconSource : public ChromeURLDataManager::DataSource { virtual void StartDataRequest(const std::string& path, int request_id); virtual std::string GetMimeType(const std::string&) const { - // Rely on image decoder inferring the correct type. - return std::string(); + // We need to explicitly return a mime type, otherwise if the user tries to + // drag the image they get no extension. + return "image/png"; } // Called when favicon data is available from the history backend. @@ -59,8 +60,9 @@ class ThumbnailSource : public ChromeURLDataManager::DataSource { virtual void StartDataRequest(const std::string& path, int request_id); virtual std::string GetMimeType(const std::string&) const { - // Rely on image decoder inferring the correct type. - return std::string(); + // We need to explicitly return a mime type, otherwise if the user tries to + // drag the image they get no extension. + return "image/png"; } // Called when thumbnail data is available from the history backend. |