summaryrefslogtreecommitdiffstats
path: root/WebKit
diff options
context:
space:
mode:
authorGrace Kloba <klobag@google.com>2010-01-18 23:48:45 -0800
committerAndroid (Google) Code Review <android-gerrit@google.com>2010-01-18 23:48:45 -0800
commit6a5a35eda549fa8b36a4a23f5006b7a6b4983a5a (patch)
treed80a07776994614888ae093b9b71795f704ce286 /WebKit
parent336f436ca1f1b868aeabd408e8dbb5d1e893d701 (diff)
parent0981d957132dc87d7cd48ae62a37002cb37c811d (diff)
downloadexternal_webkit-6a5a35eda549fa8b36a4a23f5006b7a6b4983a5a.zip
external_webkit-6a5a35eda549fa8b36a4a23f5006b7a6b4983a5a.tar.gz
external_webkit-6a5a35eda549fa8b36a4a23f5006b7a6b4983a5a.tar.bz2
Merge "Should check the enable plugin settings before accepting the plugin mimetypes." into eclair-mr2
Diffstat (limited to 'WebKit')
-rw-r--r--WebKit/android/WebCoreSupport/FrameLoaderClientAndroid.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/WebKit/android/WebCoreSupport/FrameLoaderClientAndroid.cpp b/WebKit/android/WebCoreSupport/FrameLoaderClientAndroid.cpp
index cb361bf..ae39820 100644
--- a/WebKit/android/WebCoreSupport/FrameLoaderClientAndroid.cpp
+++ b/WebKit/android/WebCoreSupport/FrameLoaderClientAndroid.cpp
@@ -727,7 +727,10 @@ bool FrameLoaderClientAndroid::canShowMIMEType(const String& mimeType) const {
if (MIMETypeRegistry::isSupportedImageResourceMIMEType(mimeType) ||
MIMETypeRegistry::isSupportedNonImageMIMEType(mimeType) ||
MIMETypeRegistry::isSupportedJavaScriptMIMEType(mimeType) ||
- PluginDatabase::installedPlugins()->isMIMETypeRegistered(mimeType) ||
+ (m_frame && m_frame->settings()
+ && m_frame->settings()->arePluginsEnabled()
+ && PluginDatabase::installedPlugins()->isMIMETypeRegistered(
+ mimeType)) ||
DOMImplementation::isTextMIMEType(mimeType) ||
DOMImplementation::isXMLMIMEType(mimeType))
return true;