--- qtwebkit/Source/WebKit/qt/WebCoreSupport/FrameLoaderClientQt.cpp.orig 2014-05-27 13:43:36.000000000 +0300 +++ qtwebkit/Source/WebKit/qt/WebCoreSupport/FrameLoaderClientQt.cpp 2014-05-27 13:44:38.000000000 +0300 @@ -1351,7 +1351,7 @@ ObjectContentType FrameLoaderClientQt::o if (!mimeType.length()) mimeType = MIMETypeRegistry::getMIMETypeForExtension(extension); - if (!mimeType.length()) + if (!mimeType.length() && canShowMIMEType(mimeType)) mimeType = PluginDatabase::installedPlugins()->MIMETypeForExtension(extension); if (!mimeType.length())