[webkit-gtk] Send HTTP header line for every request

Carlos Garcia Campos cgarcia at igalia.com
Sat Jun 25 23:21:26 PDT 2016


El sáb, 25-06-2016 a las 23:35 +0200, Jay Strict escribió:
> 
> On 25.06.2016 23:18, Michael Catanzaro wrote:
> > On Sat, 2016-06-25 at 17:50 +0200, Jay Strict wrote:
> > > I assume, as of [3], that I have to implement a WebExtension
> > 
> > No, that won't do you any good; the networking code lives in the
> > network process, not the web process.
> > 
> > Fortunately, I think you can get the behavior you want using the UI
> > process API, by connecting to the resource-load-started signal of
> > WebKitWebView; that will give you a WebKitURIRequest that you can
> > modify. I haven't tried this before; hope it works for you.
> > 
> 
> I already tried that. That way I can read the headers. When I try to
> change them, the code seems to execute without errors, but the HTTP
> headers are not actually changed.

Yes, that's the expected behavior, that signal is only a notification,
changing the request doesn't have any effect at all.

> Jay
> _______________________________________________
> 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/20160626/43bf2485/attachment.sig>


More information about the webkit-gtk mailing list