New issue 61 by zne...@gmail.com: no xmlhttprequest for file:// protocol?
http://code.google.com/p/pywebkitgtk/issues/detail?id=61
I use some ajax like
xmlhttp.open("GET","test1.txt",false);
find some question on chrome
http://www.google.com/support/forum/p/Chrome/thread?tid=171316324d16747b&hl=en
how to open --allow-file-access-from-files in pywebkit?
thx~
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:
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.