[Sugar-devel] [PATCH Browse] Error page SL #3500
Manuel Kaufmann
humitos at gmail.com
Tue Sep 25 12:43:34 EDT 2012
On Fri, Sep 21, 2012 at 8:32 PM, Martin Langhoff
<martin.langhoff at gmail.com> wrote:
> So just put <img src="file:///path/to/file" >. That saves a some of
> pointless CPU cycles, some RAM.
> This old man doesn't like inefficient code, even in small details.
I agree with you in this point but I would like to mention that this
"feature" (reading from file:// uri) has to be enabled because it is
not enabled by default[1] and this is because it was marked as a
security issue[2].
** Message: console message: @0: Not allowed to load local resource:
file:///home/humitos/src/browse/browse.png
What do you think? Should I go for the file:// approach anyway?
[1] http://webkitgtk.org/reference/webkitgtk/stable/WebKitWebSettings.html#WebKitWebSettings--enable-file-access-from-file-uris
[2] http://en.wikipedia.org/wiki/File_URI_scheme
--
Kaufmann Manuel
Blog: http://humitos.wordpress.com/
Porfolio: http://fotos.mkaufmann.com.ar/
PyAr: http://www.python.com.ar/
More information about the Sugar-devel
mailing list