Do not create intents for application/xhtml+xml

Fix for b 2584681, webview opens contents in browser.

Change-Id: I314e808a65f3c2043bd7bc7fcd44ac071f136bdc
This commit is contained in:
Kristian Monsen
2010-04-09 18:34:07 +01:00
parent c6c8a1e96f
commit e9a2fe013d

View File

@@ -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,