Comment #1 on issue 61 by zmedico: no xmlhttprequest for file:// protocol?
http://code.google.com/p/pywebkitgtk/issues/detail?id=61
As a workaround for this, I override window.XMLHttpRequest with my own
class that uses document.title to send commands to a notify::title signal
callback on the python side. Then the python side uses a
WebKit.execute_script() call reply to the request. For example code, see my
commit here:
http://code.google.com/p/electroshocktherapy/source/detail?r=438ae498...
This allows me use file:/// URIs entirely (removing an http server from my
app), which greatly reduces page loading overhead. It a little bit ugly,
but it works very well.