Quentin Rameau
9ef79bf710
webext: Process full messages
...
Piped messages would not always be fully sent in a single read.
Do a bit of message reassembly.
2024-03-24 15:27:20 +01:00
Quentin Rameau
d5f45bffe0
webext: Free JavaScript objects
...
Webkit documentation says JavaScript objects refcount is always
increased, and has to be released always.
2024-03-24 15:27:20 +01:00
Quentin Rameau
b48be75179
Fix message sizes for web extension communication
2024-03-17 09:13:56 +01:00
Quentin Rameau
2ea91766bb
webext: Remove unused functions
...
Communication from web extension to surf isn't used,
this code can always be brought back if needed.
2024-03-17 08:22:18 +01:00
Petr Vaněk
e9b7ec6722
webext: add missing gio/gunixfdlist.h includes
...
This resolves two set of warnings pointed by compiler
-Wimplicit-function-declaration and -Wint-conversion, where the later
one can result with segfault caused by invalid cast from int to pointer.
Fixes: 665a709b52 ("webext: Exchange fd over webkit messages")
2022-10-22 13:07:19 +02:00
Quentin Rameau
665a709b52
webext: Exchange fd over webkit messages
...
This is more complex, but webkit2gtk prevents passing file descriptors
to processes in 2.38.0.
2022-10-16 17:39:05 +02:00
Quentin Rameau
55c65b21f6
Simplify communication with webext
2020-11-01 16:59:12 +01:00
Quentin Rameau
e92fd1aa5f
Communicate through a Unix socket instead of a pipe pair
2020-11-01 16:59:12 +01:00
Quentin Rameau
8d5e2b3a40
Remove common
2020-11-01 16:59:11 +01:00
Quentin Rameau
21fcbc004e
Makefile: rework how webextensions are handled
2019-02-10 19:50:25 +01:00