Josip wrote:
Gustavo Noronha Silva wrote:
On Wed, 2009-10-28 at 00:12 +0100, Josip wrote:
can somebody please explain how webkit handles local files (those accessed with "file://").

It uses GIO.


$ pkg-config gio-2.0 --modversion
2.22.0

It looks like any local files is rendering just as ascii text.
So i would like to know what didReceiveResponse() actualy do and why that not works in windows.

That's because of you missing shared-mime-info. GIO depends on that to
correctly identify the content type of the file.


Thanks for help!

I have installed libwebkit-1.0-2.dll and update-mime-database.exe(from shared-mime-info-0.70) in directory C:\WebKitGTK-1.1.15.3\bin and put their mime directory in C:\WebKitGTK-1.1.15.3\share

Created environment variables:
  XDG_CONFIG_DIRS=C:\WebKitGTK-1.1.15.3\etc\xdg
  XDG_DATA_DIRS=C:\WebKitGTK-1.1.15.3\share

Run:
  update-mime-database.exe C:\WebKitGTK-1.1.15.3\share\mime

But local files still cant be opened. Did i miss something and what?



Found those lin-win differences:
GFile from path /home/josip/test.html on linux or C:\test.html on win32.
query_info() on them and
get_content_type() return: "text/html" on linux and ".html" on win32
g_content_type_get_mime_type() return "text/html" on both.
g_content_type_get_description() return "HTML document" on linux and "Firefox Document" on win32. Finally g_content_type_from_mime_type() return again "text/html" on linux but "(null)" on win32. Is that null what cause the problem?

--
Josip

_______________________________________________
webkit-gtk mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-gtk

Reply via email to