[webkit-gtk] Problem with webkit/gtk on win32

Phil Longstaff plongstaff at rogers.com
Mon Apr 5 13:48:16 PDT 2010


On Mon, 2010-04-05 at 14:58 -0300, Gustavo Noronha Silva wrote:
> On Sat, 2010-04-03 at 10:44 -0400, Phil Longstaff wrote:
> > 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.
> 
> What are you using as the last parameter (base_uri)? You can also look
> at WebKitWebSettings, there are many security-related options regarding
> how file:// URIs are handled. It may be that some of the checks are
> triggering on Windows only.

Could be.  I actually found that some of them were triggering on Linux
as well and providing console messages.  Since I don't have a console on
Windows, I don't know if I would be getting similar messages.  I have a
solution which works for now (write my html string to a temp file and
load as a file:// URI using webkit_web_view_load_uri()).  I may try to
figure out how to load using webkit_web_view_load_string(), but my main
issue is fixed, so this would be lower priority.

I haven't been following the various bugs related to webkit/gtk on
win32.  I use an opensuse cross-compilation environment, and the
webkit-1.1.90 source RPM has a .patch file to fix a number of win32
issues.

Phil



More information about the webkit-gtk mailing list