bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#68604: [PATCH] Add user option to disable JavaScript in xwidget webv


From: Po Lu
Subject: bug#68604: [PATCH] Add user option to disable JavaScript in xwidget webview
Date: Mon, 04 Mar 2024 10:01:54 +0800
User-agent: Gnus/5.13 (Gnus v5.13)

Noé Lopez <noelopez@free.fr> writes:

> As of right now, no extensions (including LibreJS) can work. But
> thanks to WebKitGTK's support for WebExtensions there is a possibility
> to add support for it.
>
> From what I understood by reading the sparse documentation, we can
> register an extension directory when starting WebKit and it just might
> load it if we place it in there. I'll try it for a future patch, it
> could also make other extensions like uBlock origin work if I
> understood correctly, but I don't understand that much when there's so
> little documentation I could find. I'll try it out and let you know.
>
> Po Lu, since you're the maintainer for xwidget.c, do you have any tips
> on this ?

Recent WebKitGTK releases have removed functionality required if Emacs
is to display web pages within off-screen windows, so I think our
priority should be restoring the browser to a functional condition,
rather than introducing non-essential extensions that will only serve a
dwindling number of users.  The approach I suggest is to port xwidget.c
to the WPE library:

  https://wpewebkit.org

which is designed for displaying web pages onto off-screen buffers that
are later copied as the client pleases, a perfect match for Emacs's
requirements.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]