[webkit-gtk] Exposing enable-web-security through WebKitSettings? (for test harnesses)

Carlos Garcia Campos cgarcia at igalia.com
Fri Sep 26 23:36:59 PDT 2014


El mar, 18-03-2014 a las 16:23 +0000, Mario Sanchez Prada escribió:
> Hi Sven,
> 
> Thanks for the feedback, you confirmed that this is not a so strange use
> case after all, so I filed the bug in bugzilla and attached a patch proposal
> for it, before I get busy with something else that makes me forget about it
> :):
> https://bugs.webkit.org/show_bug.cgi?id=130398

Would a load_file API help? WebPageProxy has a method to load local
files that receives a resourcesDir param that is granted read access. We
could expose that as 

void webkit_web_view_load_file (WebKitWebView *web_view, const gchar *filename, const gchar *allow_read_access_dir);

We could also check in other load methods like webkit_web_view_load_uri,
if the given uri is a file:// and call webkit_web_view_load_file
instead. 

> Thanks,
> Mario
>  
> > I'd really appreciate it, we're using Chromium with this to locally
> > test web applications. Being able to use (Py)WebkitGTK would make
> > testing a lot easier. :-)
> 
> 
> _______________________________________________
> webkit-gtk mailing list
> webkit-gtk at lists.webkit.org
> https://lists.webkit.org/mailman/listinfo/webkit-gtk
> 

-- 
Carlos Garcia Campos
http://pgp.rediris.es:11371/pks/lookup?op=get&search=0xF3D322D0EC4582C3
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: This is a digitally signed message part
URL: <https://lists.webkit.org/pipermail/webkit-gtk/attachments/20140927/536882ba/attachment.sig>


More information about the webkit-gtk mailing list