summaryrefslogtreecommitdiffstats
path: root/core/java/android/webkit
diff options
context:
space:
mode:
authorKristian Monsen <kristianm@google.com>2010-04-09 10:59:20 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2010-04-09 10:59:20 -0700
commit34959e3fe87012d554af07fd6ad294b2ce3daea7 (patch)
tree7c54736456662a01d6d3854bf1331119a5fe92c9 /core/java/android/webkit
parente67e6b94fd282283f1ffa2299fae536bee099715 (diff)
parente9a2fe013d9d3bb04ccbe665c54337bfa1880012 (diff)
downloadframeworks_base-34959e3fe87012d554af07fd6ad294b2ce3daea7.zip
frameworks_base-34959e3fe87012d554af07fd6ad294b2ce3daea7.tar.gz
frameworks_base-34959e3fe87012d554af07fd6ad294b2ce3daea7.tar.bz2
Merge "Do not create intents for application/xhtml+xml" into froyo
Diffstat (limited to 'core/java/android/webkit')
-rw-r--r--core/java/android/webkit/LoadListener.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/java/android/webkit/LoadListener.java b/core/java/android/webkit/LoadListener.java
index 1130e95..12b8c74 100644
--- a/core/java/android/webkit/LoadListener.java
+++ b/core/java/android/webkit/LoadListener.java
@@ -380,7 +380,8 @@ class LoadListener extends Handler implements EventHandler {
}
// At this point, mMimeType has been set to non-null.
if (mIsMainPageLoader && mIsMainResourceLoader && mUserGesture &&
- Pattern.matches(XML_MIME_TYPE, mMimeType)) {
+ Pattern.matches(XML_MIME_TYPE, mMimeType) &&
+ !mMimeType.equalsIgnoreCase("application/xhtml+xml")) {
Intent i = new Intent(Intent.ACTION_VIEW);
i.setDataAndType(Uri.parse(url()), mMimeType);
ResolveInfo info = mContext.getPackageManager().resolveActivity(i,