[webkit-gtk] Passing resources from memory to an embedded Webkit

Gustavo Noronha Silva gns at gnome.org
Fri Apr 8 07:34:06 PDT 2011

On Tue, 2011-04-05 at 13:12 +0100, Rupert Swarbrick wrote:
> On option would be to extract the relevant image or whatever to a
> temporary file and then use the above hook to change the uri to
> file://blah and everything would work. It'd be really nasty though, and
> I don't see any reason everything can't stay in memory so...
> Is there a way to give WebKit a hunk of memory at this point? I dimly
> remember doing this embedding gecko back in the day and one added a
> custom protocol along with a handler for it, but I'm not sure if that's
> the way to do it here. Any suggestions?

With current libsoup you can register custom scheme handlers (by
subclassing SoupRequest) and then use the new soup streams-based APIs to
feed the image data to WebKit. You can take a look at how Epiphany is
going to implement various about: URIs here:



Gustavo Noronha Silva <gns at gnome.org>
GNOME Project

More information about the webkit-gtk mailing list