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

Unified Diff: chrome/renderer/chrome_content_renderer_client.cc

Issue 9016030: Missing plugin : Fix null mimetype issue in embed tag (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years 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: chrome/renderer/chrome_content_renderer_client.cc
===================================================================
--- chrome/renderer/chrome_content_renderer_client.cc (revision 115178)
+++ chrome/renderer/chrome_content_renderer_client.cc (working copy)
@@ -353,6 +353,14 @@
}
}
+ if (params.mimeType.isNull() && (actual_mime_type.size() > 0)) {
+ // Webkit might say that mime type is null while we already know the
+ // actual mime type via ChromeViewHostMsg_GetPluginInfo. In that case
+ // we should use what we know since WebpluginDelegateProxy does some
+ // specific initializations based on this information.
+ params.mimeType = WebString::fromUTF8(actual_mime_type.c_str());
+ }
+
if (status.value ==
ChromeViewHostMsg_GetPluginInfo_Status::kOutdatedBlocked) {
render_view->Send(new ChromeViewHostMsg_BlockedOutdatedPlugin(
« 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