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

Zhe Su james.su at gmail.com
Thu May 14 02:42:59 PDT 2009


I just found that setting base_uri to "file://" can't actually solve the
problem. Though it allows loading local image file in a simple html content,
I found that using local image file in css may still not work. It looks not
like a correct behavior.

Regards
James Su

On Thu, May 14, 2009 at 3:37 PM, Holger Freyther <zecke at selfish.org> wrote:

> On Thursday 14 May 2009 07:14:18 Jan Alonzo wrote:
> > Hi  james,
> >
> > can you please file a bug against the WebKitGtk component at
> > http://bugs.webkit.org. I don't think that's correct.
>
> It is correct. You define the SecurityOrigin (we have a class with that
> name)
> and you want to load something from a different context. Think of a WebPage
> trying to get file:///etc/passwd. This is only allowed if the page itself
> has
> been loaded from file...
>
>
>
>        z.
> _______________________________________________
> webkit-dev mailing list
> webkit-dev at lists.webkit.org
> http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20090514/b6246d70/attachment.html>


More information about the webkit-dev mailing list