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

allstars.chh allstars.chh at gmail.com
Thu May 27 20:20:01 PDT 2010

i found this problem on Android2.0 Browser
first i discovered a JAD cannot be downloaded by the Browser but loaded and
displayed as a webpage

then i checked the webkit port on android

in the FrameLoaderClient of Android

they use DOMImplementation::isTextMIMEType to determine if this resource is
of DOM
after that i think the JAD has been loaded as a Resource and displayed as a
web page

so i think the problem comes from the DOMimplenetation interface


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

> On May 27, 2010, at 12:49 AM, allstars.chh wrote:
> such as  JAD of the midlet
> http://en.wikipedia.org/wiki/JAD_(file_format)
> mime type:text/vnd.sun.j2me.app-descriptor
> but in this case , the JAD will be threated as a DOM and loaded by webkit
> instead of triggering download procedure
> The answer to the question of whether this is a bug or a feature is to find
> out what other web browsers do with files of this MIME type and also to
> check whether there are any standards that have anything to say about
> correct behavior.
> The code is just a means to an end. Tthe first step is to find out what
> behavior we want. Then we can discuss how to change the software.
>     -- Darin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20100528/b6a034c7/attachment.html>

More information about the webkit-dev mailing list