On Mon, January 4, 2010 at 5:19:46 PM, Fei Wang wrote:

> I define my own MIMEType like application/foo with file extension .foo. It 
> works 
> fine if I serve file through web server ( inside web server configuration, I 
> add 
> application/foo  foo to the mime type map). In the webkit, I modify the 
> MIMETypeRegistry.cpp file, add those MIMEType in. It works if I serve the 
> file 
> from webserver. 
> 
> But it does not work if I want to open the file xxx.foo locally.
> 
> I use build-webkit script to build it in my mac. But if I want to open safari 
> to 
> open local file with .foo extension, it grey out that file.
> 
> Does anyone know how to add customized MimeType with local file extension to 
> the 
> webkit?


See:

WebCore/platform/MIMETypeRegistry.cpp
WebCore/platform/mac/MIMETypeRegistryMac.mm

Dave

_______________________________________________
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev

Reply via email to