[webkit-gtk] Problem with webkit/gtk on win32
Phil Longstaff
plongstaff at rogers.com
Sat Apr 3 07:44:00 PDT 2010
My application for embedding webkit is as a report format/display
engine. The application creates an html string and loads into into
webkit using webkit_web_view_load_html_string(). Yes, I know that
function is deprecated, but when I wrote this code, it was all that
existed, and I haven't changed it yet. The problem is that embedded
<img src="file:///..."> images load fine on linux, but not on windows.
With Josip's help, I cross-compiled a copy of webkitgtk 1.1.90 with his
local-file mime-type patch. Still no luck. However, if I exported the
html string to a file and loaded it with GtkLauncher, it appeared
correctly. I then hacked my app so that instead of loading the html
string, it wrote it to a file and loaded the file: URI. It appears
correctly.
So, why would there be a difference between a) loading an html string
into a web view using webkit_web_view_load_html_string(), and b) writing
the html string to a file and loading it using
webkit_web_view_load_uri()?
Phil
More information about the webkit-gtk
mailing list