From: "Perry E. Metzger" <perry@piermont.com>
To: Ricardo Wurmus <rekado@elephly.net>
Cc: emacs-devel@gnu.org
Subject: Re: fine grained control of webkit browsing
Date: Tue, 19 Jun 2018 12:37:16 -0400 [thread overview]
Message-ID: <20180619123716.5741c9c0@jabberwock.cb.piermont.com> (raw)
In-Reply-To: <87po0mvjes.fsf@elephly.net>
On Tue, 19 Jun 2018 18:19:07 +0200 Ricardo Wurmus
<rekado@elephly.net> wrote:
> Perry E. Metzger <perry@piermont.com> writes:
>
> > 2) Say one wants to do things like viewing something with
> > javascript off and without loading remote elements (say because
> > one wants to safely view some HTML email). What does one need to
> > do to get this to work?
>
> The widget is not fully integrated into Emacs.
It would be neat if it were. One would like, for example,
to be able to move a cursor around in it with keyboard commands,
copy text, and move back to another buffer and paste it without
touching the mouse.
> The extent to which one can conveniently communicate with the widget
> is by sending a string containing a JavaScript program to the widget
> and have it return a value. Everything else requires exposing
> Webkit API features to Elisp.
Ah, so at the moment, this isn't yet at the point where (for example)
one could safely use it to view HTML email. (To do that, among other
things, one needs to shut off JavaScript and to allow programmatic
control over which images are loaded.)
> Attached is an old patch that I never submitted that allows one to
> set webkit settings via Elisp. Unfortunately, disabling JavaScript
> for the widget also disables JavaScript evaluation of strings that
> are sent from Emacs -- we use JavaScript for telling the widget to
> scroll, for example. (See ___xwidget-webkit-scroll-bottom___ or
> ___xwidget-webkit-show-element___.)
So it would be necessary to tighten the integration a lot more in
order to make this work as cleanly as one might like?
Perry
--
Perry E. Metzger perry@piermont.com
next prev parent reply other threads:[~2018-06-19 16:37 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-19 15:49 fine grained control of webkit browsing Perry E. Metzger
2018-06-19 16:19 ` Ricardo Wurmus
2018-06-19 16:37 ` Perry E. Metzger [this message]
2018-06-19 18:58 ` joakim
2018-06-19 20:51 ` Perry E. Metzger
2018-06-19 21:31 ` joakim
2018-06-20 0:19 ` T.V Raman
2018-06-19 22:57 ` Richard Stallman
2018-06-20 1:20 ` Perry E. Metzger
2018-06-20 23:26 ` Richard Stallman
2018-06-21 0:00 ` Perry E. Metzger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180619123716.5741c9c0@jabberwock.cb.piermont.com \
--to=perry@piermont.com \
--cc=emacs-devel@gnu.org \
--cc=rekado@elephly.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.