summaryrefslogtreecommitdiffstats
path: root/WebKit/android/WebCoreSupport/FrameLoaderClientAndroid.cpp
diff options
context:
space:
mode:
authorPatrick Scott <phanna@android.com>2009-07-21 14:35:24 -0400
committerPatrick Scott <phanna@android.com>2009-07-21 14:35:24 -0400
commitb20ea4938e919d82254b11885220c8564546d1ca (patch)
tree5e58cbfe83fd2430e42b0608b66480906aeef13f /WebKit/android/WebCoreSupport/FrameLoaderClientAndroid.cpp
parentce39e03a248f9bee3e746c15e7961b3e40a871ed (diff)
downloadexternal_webkit-b20ea4938e919d82254b11885220c8564546d1ca.zip
external_webkit-b20ea4938e919d82254b11885220c8564546d1ca.tar.gz
external_webkit-b20ea4938e919d82254b11885220c8564546d1ca.tar.bz2
Check for xml and text mime types through DOMImplementation.
This change in conjunction with a change in MimeTypeMap allows text extensions to map to text/* mime types. Previously, a text mime type would be downloaded instead of displayed if MimeTypeMap mapped a text extension to an unknown text mime type. Use DOMImplementation to check for xml and text mime types since it will compare the mime type to "text/"
Diffstat (limited to 'WebKit/android/WebCoreSupport/FrameLoaderClientAndroid.cpp')
-rw-r--r--WebKit/android/WebCoreSupport/FrameLoaderClientAndroid.cpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/WebKit/android/WebCoreSupport/FrameLoaderClientAndroid.cpp b/WebKit/android/WebCoreSupport/FrameLoaderClientAndroid.cpp
index 24d027a..b81e5f3 100644
--- a/WebKit/android/WebCoreSupport/FrameLoaderClientAndroid.cpp
+++ b/WebKit/android/WebCoreSupport/FrameLoaderClientAndroid.cpp
@@ -29,13 +29,12 @@
#include "android_graphics.h"
#include "CString.h"
#include "DocumentLoader.h"
+#include "DOMImplementation.h"
#include "Frame.h"
#include "FrameLoader.h"
#include "FrameLoaderClientAndroid.h"
#include "FrameTree.h"
#include "GraphicsContext.h"
-// HTMLFormElement needed for a bad include
-#include "HTMLFormElement.h"
#include "HTMLFrameOwnerElement.h"
#include "HTMLPlugInElement.h"
#include "IconDatabase.h"
@@ -46,11 +45,6 @@
#include "PlatformString.h"
#include "PluginDatabase.h"
#include "PluginView.h"
-#ifdef ANDROID_PLUGINS
-// Removed.
-#else
-#include "PluginViewBridgeAndroid.h"
-#endif
#include "ProgressTracker.h"
#include "RenderPart.h"
#include "ResourceError.h"
@@ -663,7 +657,9 @@ bool FrameLoaderClientAndroid::canShowMIMEType(const String& mimeType) const {
if (MIMETypeRegistry::isSupportedImageResourceMIMEType(mimeType) ||
MIMETypeRegistry::isSupportedNonImageMIMEType(mimeType) ||
MIMETypeRegistry::isSupportedJavaScriptMIMEType(mimeType) ||
- PluginDatabase::installedPlugins()->isMIMETypeRegistered(mimeType))
+ PluginDatabase::installedPlugins()->isMIMETypeRegistered(mimeType) ||
+ DOMImplementation::isTextMIMEType(mimeType) ||
+ DOMImplementation::isXMLMIMEType(mimeType))
return true;
return false;
}