On 10/01/2014 14:04, Estu Fardani wrote:
Hi, i'm beginner vala user.
this time i do something code to run webkit from vala.
there the problem the security restrictions on file://
how to set webkit so it can run with option --allow-file-access-from-files
from vala?
where to put this code.
this my sample code :
public Main ()
{
var test = new App();
load_uri ("file://" + Environment.get_current_dir() +
"/public/index.html");
window_object_cleared.connect ((frame, context) => {
test.setup_js_class ((JSCore.GlobalContext) context);
});
}
thank you.
valadoc.org helps:
http://valadoc.org/#!api=webkit-1.0/WebKit.WebSettings.enable_file_access_from_file_uris
<http://valadoc.org/#%21api=webkit-1.0/WebKit.WebSettings.enable_file_access_from_file_uris>
_______________________________________________
vala-list mailing list
vala-list@gnome.org
https://mail.gnome.org/mailman/listinfo/vala-list