[webkit-dev] How to let webkit to be able to load local image file in html content?

Zhe Su james.su at gmail.com
Wed May 13 19:40:56 PDT 2009


Attached is a simple test program. When running the program, following error
occurred:

console message:  @0: Not allowed to load local resource:
file:///usr/share/pixmaps/elisa.svg

But if you save the html content into a file and load it with GtkLauncher,
then it's ok.

Regards
James Su

On Thu, May 14, 2009 at 12:26 AM, tonikitoo (Antonio Gomes) <
tonikitoo at gmail.com> wrote:

> It sounds like we can be misusing the base_url parameter. could you
> paste how you are calling the method (parameters and so) and a snippet
> of the local html file.
>
> On Wed, May 13, 2009 at 6:58 AM, Zhe Su <james.su at gmail.com> wrote:
> > Hi,
> >   When I call webkit_web_view_load_html_string() to load a html content
> into
> > a webkitview, webkit always refuses to load local files (image) referred
> in
> > the html content. Is it possible to work around this behavior and let
> webkit
> > load local files?
>
> --
> --Antonio Gomes
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20090514/63ac5ccc/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: webkit.c
Type: text/x-csrc
Size: 588 bytes
Desc: not available
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20090514/63ac5ccc/attachment.bin>


More information about the webkit-dev mailing list