[webkit-gtk] Passing resources from memory to an embedded Webkit
rswarbrick at gmail.com
Tue Apr 12 01:23:00 PDT 2011
Gustavo Noronha Silva <gns at gnome.org>
> 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:
Ah, thanks for the suggestion. I think I'll go with the data: URI option
for now (it seems to be working well), but that solution sounds neat!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 315 bytes
Desc: not available
More information about the webkit-gtk