[webkit-gtk] R: Re: Can't find a way to implement content blocking (filtering)

Michael Catanzaro mcatanzaro at gnome.org
Tue May 4 10:44:52 PDT 2021


On Tue, May 4 2021 at 06:53:58 PM +0200, linuxfan at tin.it wrote:
> Ok, let's see... any idea on how to make the UI (main program)
> communicate with the library? A pipe perhaps?

A pipe would work. You can use whatever form of IPC you want. But there 
are a few built-in options that will probably be easier:

UI process -> web process:

webkit_web_context_send_message_to_all_extensions()
webkit_web_view_send_message_to_page()

Web process -> UI process:

webkit_web_extension_send_message_to_context()
webkit_web_page_send_message_to_view()




More information about the webkit-gtk mailing list