Bug 50416
| Summary: | On windows drive letters are ignored for inline images by webkitgtk | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | jendrikseipp |
| Component: | Platform | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED INVALID | ||
| Severity: | Normal | CC: | aroben, mrobinson |
| Priority: | P2 | ||
| Version: | 528+ (Nightly build) | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
jendrikseipp
This bug is probably windows specific.
If there's an image at C:\image.jpg, and it is contained inside an HTML file, it is correctly displayed. However images that don't reside on C:\ cannot be displayed. The following table gives an overview:
| Image path | HTML code | Observation |
| C:\image.jpg | <img src="file://C:\image.jpg" border="0" alt=""/> | Works |
| C:\image.jpg | <img src="file://D:\image.jpg" border="0" alt=""/> | Works although path is incorrect, drive letter can even be omitted |
| D:\image.jpg | <img src="file://D:\image.jpg" border="0" alt=""/> | Image not found |
| D:\image.jpg | <img src="file://C:\image.jpg" border="0" alt=""/> | Image not found (this is expected) |
The issue is also discussed at https://bugs.launchpad.net/rednotebook/+bug/663944 .
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Alexey Proskuryakov
See also bug 21972 (duplicate?)
Martin Robinson
What version of WebKitGTK+ did you observe this with? This sounds like a libsoup bug.
jendrikseipp
Well, I used the dlls from http://opensourcepack.blogspot.com/2009/12/pywebkitgtk-windows-binary.html
I think that was webkit version 1.2.0 and libsoup-2.4-1.dll (2.30).
jendrikseipp
I tried loading a problematic HTML file with midori and it works fine. I then copied the libsoup-2.4-1.dll file into my webkit directory, but it does not fix the error. So this may be something else than libsoup.
jendrikseipp
I think the problem was a missing slash. Apparently on windows you have to write file:///C:\myfile.txt instead of file://C:\myfile.txt
Martin Robinson
Okay. I'll close this bug then. Feel free to open a new bug if you encounter more issues.