The local address to the image is injected into an HTML page (the
error page). This address needs to be a proper URL with file:///,
not just the absolute path to the image file - otherwise
KIO::SimpleJobPrivate::simpleJobInit complains with "Invalid URL".
Details
Compiles, and when trying to load an invalid address in Konqueror
with the KHTML part, the warning picture on the top-left corner is
now visible.
Diff Detail
- Repository
- R313 KHtml
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
The patch looks fine to me, and gives a file:// that successfully opens in a separate Konq tab... but the image still doesn't show in the actual error page. I'm not sure of the cause though and have no time to research further tonight. :(
Thanks for checking: with this patch you should not see the error that I reported in the summary/commit message. Is it the case? If it is, I guess that the patch can go in.
It's interesting to note that I have the same issue that you reported on one of my two machines; it works on the other. Same operating system, same configuration, same kdesrc-build O.o.
I didn't get the exact SimpleJob error message you noted, no. But I didn't remember to check before applying the patch either. Either way it makes it no worse, so +1.