[webkit-dev] question about download vs. display for text/* MIME types

allstars.chh allstars.chh at gmail.com
Thu May 27 21:11:19 PDT 2010

hi Darin

first i didnt mean it's a bug now
my question is in the ' definition of DOMImplenentation::isTextMIMEType'
because now WebKit on Android port has used (or misused) this interface and
cause some problems
so i post my questions to this mailing list

for other ports of webkit
they didnt use this interface, so i now focus on the android port

here it decides the policy stage of this mimetype

then it calls canShowMIMEType

and in this function
it uses DOMImplementation::isTextMIMEType to check
because here the interface returns 'true' therefore android port thought
this should be handled internally
and didnt make it in a POLICY_DOWNLOAD stage

however, in the implementation of DOMImplementation::isTextMIMEType
it treats all mime types starts with "text/' as DOM except text/html and

because the definition and implementation of this interface arent precisely
and cause some mis-understanding here
so i post this message to request for your great opinion


On Fri, May 28, 2010 at 11:21 AM, Darin Adler <darin at apple.com> wrote:

> What does Firefox do with files of this MIME type? What does Internet
> Explorer do? Please add that information to the bug.
>    -- Darin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20100528/3e4cf573/attachment.html>

More information about the webkit-dev mailing list