| Summary: | WebResource get_data_finish returning an empty string | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Spencer <zeroSteiner> | ||||
| Component: | WebKitGTK | Assignee: | Nobody <webkit-unassigned> | ||||
| Status: | NEW --- | ||||||
| Severity: | Normal | CC: | bugs-noreply, mcatanzaro | ||||
| Priority: | P2 | ||||||
| Version: | 528+ (Nightly build) | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Linux | ||||||
| Attachments: |
|
||||||
Created attachment 250934 [details] Bug demonstration I'm using WebKit2GTK+ in Python using GObject introspection on Fedora 21 using the webkitgtk4 package. My application is trying to access the data from the WebResource using get_data and get_data_finish. For certain resources get_data_finish will return an empty string. However for the same resource WebResource.get_response().get_content_length() returns the valid and expected length of the data that I am trying to retrieve. The request to the affected resource is made through javascript and the resource itself is an XML file. These details are a bit vague so I included a python script that reproduces the error. Running demo.py from the attached tarball will load the two resources in the webroot directory. The config.xml file will have an invalid length of 0 while the content length will be correct.