all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Qiantan Hong <qhong@mit.edu>
To: "rms@gnu.org" <rms@gnu.org>
Cc: "emacs-devel@gnu.org" <emacs-devel@gnu.org>
Subject: Re: [PATCH] Add user content APIs for WebKit Xwidgets
Date: Sat, 29 Aug 2020 04:45:53 +0000	[thread overview]
Message-ID: <41E2E924-1F0E-43BD-9B61-B3A029F32DF1@mit.edu> (raw)
In-Reply-To: <E1kBsBo-0002fP-SN@fencepost.gnu.org>

[-- Attachment #1: Type: text/plain, Size: 1468 bytes --]


>      for WebKit Xwidgets, both
>> for WebKitGTK impl and NS/mac impl.
> 
> Can you tell me what this has to do with Javascript?
> Is Webkitgtk implemented using Javascript?
No, but it’s a Javascript enabled web rendering engine,
and it provides API to interact with its Javascript interpreter.

> 
>> The script message handler API makes it possible to trigger event in emacs
>> from JavaScript, and can be used to implement procedure calling from
>> js to elisp. Currently only the other way around is possible.
> 
> If the Javascript code is free, or user-written, there's no harm in doing such
> calls in either direction.  But when the language is Javascript, given the way
> Javascript is usually used (running nonfree programs that random sites send,
> often in obfuscated form), I'm concerned that we are opening the door
> to vicious habits that we ought to be trying to discourage.
The Webkit itself supports Javascript and in current form that it's embedded in
Emacs, it either allows any Javascript execution, or Javascript can be completely 
disabled. This patch is about exposing more APIs to interact with Javascript,
and can be possibly used to control Javascript execution. 

I’m currently reading the source of librejs. It’s also written in 
Javascript and look like to let it run in Emacs and supervise the Webkit Xwidgets,
bidirectional calling between Elisp/JS is a necessity — which this patch
provides.



[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 1858 bytes --]

  reply	other threads:[~2020-08-29  4:45 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-28  2:25 [PATCH] Add user content APIs for WebKit Xwidgets Qiantan Hong
2020-08-28 14:37 ` Lars Ingebrigtsen
2020-08-28 15:41   ` Qiantan Hong
2020-08-30 13:43     ` Lars Ingebrigtsen
2020-08-29  4:07   ` Richard Stallman
2020-08-29  4:10 ` Richard Stallman
2020-08-29  4:45   ` Qiantan Hong [this message]
  -- strict thread matches above, loose matches on Subject: below --
2022-10-14  6:34 Qiantan Hong
2022-10-14  7:01 ` Po Lu
2022-10-14  7:12   ` Qiantan Hong
2022-10-14  7:35     ` Po Lu
2022-10-14 21:13       ` Qiantan Hong
2022-10-15  1:37         ` Qiantan Hong
2022-10-15  7:53           ` Qiantan Hong
2022-10-15 11:23             ` Po Lu
2022-10-15 18:29               ` Qiantan Hong
2022-10-16  0:26                 ` Po Lu
2022-10-15 23:33               ` Qiantan Hong
2022-10-16  4:32                 ` Po Lu
2022-10-16  6:29                   ` Qiantan Hong
2022-10-16  6:41                     ` Po Lu
2022-10-16  6:45                       ` Po Lu
2022-10-23  9:11                       ` Qiantan Hong
2022-10-23 10:58                         ` Po Lu
2022-10-23 22:16                           ` Qiantan Hong
2022-10-24  0:30                             ` Po Lu
2022-10-24  4:17                               ` Qiantan Hong
2022-10-24  5:38                                 ` Po Lu
2022-10-24  5:44                                   ` Qiantan Hong
2022-10-24  7:20                                     ` Po Lu

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=41E2E924-1F0E-43BD-9B61-B3A029F32DF1@mit.edu \
    --to=qhong@mit.edu \
    --cc=emacs-devel@gnu.org \
    --cc=rms@gnu.org \
    /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.