[Vala] How to set Webkit option from vala



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.

- Estu Fardani -
+62 856 432 14898
Linux Blog: http://tuanpembual.wordpess.com<http://tuanpembual.wordpress.com>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]