[webkit-gtk] No images on Windows, just wireframes
Gavin Lambert
gavinl at compacsort.com
Mon Oct 3 22:56:18 PDT 2011
Quoth Matthew Talbert:
> Some more info on this problem after researching it further. It seems
> if I construct a url like this:
>
> file:///Users/matthew/AppData/Roaming/images/image.jpg
>
> it works fine. The problem is adding in a drive letter. I've tried
> every sort of combination possible but nothing works. For example,
> this will not work:
>
> file://C:/Users/matthew/AppData/Roaming/images/image.jpg
>
> Nor will a whole host of other things, including UNC paths, etc.
As Martin noted, the following is the correct form of file URL including
drive letter:
file:///C:/Users/matthew/AppData/Roaming/images/image.jpg
(For historic reasons, a | is usually accepted in place of the : in the
drive component, since that's what the old Netscape browsers used.)
The world is a little divided about what the correct form of URL is for a
UNC path. The one that seems to work most universally is this:
file://///servername/sharename/folder/subfolder/image.jpg
Some browsers additionally accept this:
file://servername/sharename/folder/subfolder/image.jpg
(I haven't done any libwebkit-specific tests on these, as my usage only
needed to support a local mini-http server, or occasionally data: URLs, and
I'm building on Linux.)
More information about the webkit-gtk
mailing list