[webkit-gtk] web context: overriding handling of http[s] schemes

Carlos Garcia Campos cgarcia at igalia.com
Mon Apr 2 23:37:33 PDT 2018


El jue, 29-03-2018 a las 23:11 +0200, Maxence Guesdon escribió:
> Hello,
> 
> I use Webkit2-4 2.10 and Gtk-3.18 (on ubuntu xenial)
> 
> In an application, I have a webkit web view. When I set a callback
> for
> the http or https schemes, using
> webkit_web_context_register_uri_scheme,
> I get the following error:
> 
> (process:8909): libsoup-CRITICAL **: soup_request_http_get_message:
> assertion 'SOUP_IS_REQUEST_HTTP (http)' failed
> 
> and the web view displays: "The URL can’t be shown" .

Custom URI schemes are for new schemes, not for overriding existing
ones. We should check it and fail earlier, though.

> If I set my callback for another scheme, everything goes well. Is it
> possible to override the handling of http and https schemes ? (I hope
> so)
> 
> Regards,
> 
> Maxence
> 
> _______________________________________________
> 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: 195 bytes
Desc: This is a digitally signed message part
URL: <http://lists.webkit.org/pipermail/webkit-gtk/attachments/20180403/0326192b/attachment.bin>


More information about the webkit-gtk mailing list