From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Add user content APIs for WebKit Xwidgets Date: Sat, 29 Aug 2020 00:10:04 -0400 Message-ID: References: Reply-To: rms@gnu.org Content-Type: text/plain; charset=Utf-8 Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19490"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Qiantan Hong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Aug 29 06:10:51 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kBsCY-0004wU-FK for ged-emacs-devel@m.gmane-mx.org; Sat, 29 Aug 2020 06:10:50 +0200 Original-Received: from localhost ([::1]:51754 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kBsCX-00043E-Fj for ged-emacs-devel@m.gmane-mx.org; Sat, 29 Aug 2020 00:10:49 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60852) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kBsBq-0002uI-Ng for emacs-devel@gnu.org; Sat, 29 Aug 2020 00:10:06 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:47276) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kBsBp-0000jX-U9; Sat, 29 Aug 2020 00:10:05 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1kBsBo-0002fP-SN; Sat, 29 Aug 2020 00:10:05 -0400 In-Reply-To: (message from Qiantan Hong on Fri, 28 Aug 2020 02:25:22 +0000) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:254376 Archived-At: [[[ To any NSA and FBI agents reading my email: please consider ]]] [[[ whether defending the US Constitution against all enemies, ]]] [[[ foreign or domestic, requires you to follow Snowden's example. ]]] > I implemented some primitives to expose some WebKit user content APIs > (user script and script message handlers) I am not sure what those terms mean, but could we please not call them "content"? 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? > 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. -- Dr Richard Stallman Chief GNUisance of the GNU Project (https://gnu.org) Founder, Free Software Foundation (https://fsf.org) Internet Hall-of-Famer (https://internethalloffame.org)