[webkit-gtk] Migrating to Webkit2 from WebKit1
mathstuf at gmail.com
Thu Dec 12 19:52:52 PST 2013
On Thu, 12 Dec, 2013 at 19:25:00 GMT, Niranjan Rao wrote:
> 2. Can Webkit2 be used by python libraries using introspection? While
> not necessary for our code, it makes life easier to do quick test in python.
I'd write an extension which starts Python then marshals the extension
object to some well-known Python module you manually import then call
with the object. You should be able to hook up signals directly in
Python then. I don't know GTK<->Python well enough to know how to get
GTK to marshal for you.
You'll need to wait for introspection stuff though.
> 3. ...
> 5. ...
> 6. WebKitWebPage::send-request - what exactly is treated as resource?
> Any thing that will be fetched from remote server like images/css etc?
> What about pdf or other files than browser won't display.
Every request. It looks like the initial navigation request gets through
as well (I need to verify this though). I've used it to implement things
like AdBlock, HTTPS-Everywhere, and RequestPolicy for uzbl. See also:
- Add a 'reason' API for resource requests:
> 7. Any other notes/warnings your care to add
These bugs I've opened may be of interest to you:
- My list of things missing in WebKit2 compared to WebKit1:
- Having WebKitGTK open a communication channel (there seems to be an
WebCore API for this, just not wrapped):
More information about the webkit-gtk