New issue
Advanced search Search tips

Issue 854283 link

Starred by 2 users

Issue metadata

Status: Available
Owner: ----
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 3
Type: Task



Sign in to add a comment

WebView special protocol handlers use a different MIME type map to the rest of Chromium

Project Member Reported by torne@chromium.org, Jun 19 2018

Issue description

The implementation of AndroidProtocolHandler for the special file://android_asset/ and file://android_res/ URLs implements getMimeType just by passing the file extension to java.net.URLConnection.guessContentTypeFromName.

This means that it won't necessarily guess the same MIME types as normal file: URLs, which use Chromium's internal MIME type map instead of Android's.

We should probably see if there's a way to use Chromium's instead, since Android's map may not include all file types that Chromium can actually render.
 

Sign in to add a comment