hi 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 http://android.git.kernel.org/?p=platform/external/webkit.git;a=blob;f=WebKit/android/WebCoreSupport/FrameLoaderClientAndroid.cpp;h=c567c665f3fae0061e4906e73dd6ebd0a3cb5234;hb=HEAD#l694 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 thanks On Fri, May 28, 2010 at 5:02 AM, Darin Adler <[email protected]> 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 > >
_______________________________________________ webkit-dev mailing list [email protected] http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev

