unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Jaesup Kwak <veshboo@gmail.com>
To: 29565@debbugs.gnu.org
Subject: bug#29565: [PATCH] Enable plugins for ns xwidget webkit (Bug#29565)
Date: Wed, 20 Dec 2017 17:25:50 +0900	[thread overview]
Message-ID: <CAADX8xJ4=fJNSW8b8xHN6k5656JQAHH6RmfD148WxBvfd6G3Uw@mail.gmail.com> (raw)
In-Reply-To: <CAADX8xLDj_vWMhEHV0PhfucjuWm7OHXe8Cg2mjVnxZGE-z3O+w@mail.gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 180 bytes --]

Enable plugins for ns xwidget webkit if
'xwidget-webkit-enable-plugins' is non-nil.

* lisp/xwidget.el (xwidget-webkit-enable-plugins)
* src/nsxwidget.m (XwWebView::initWithFrame)

[-- Attachment #1.2: Type: text/html, Size: 280 bytes --]

[-- Attachment #2: 0001-Enable-plugins-for-ns-xwidget-webkit-Bug-29565.patch --]
[-- Type: application/octet-stream, Size: 1658 bytes --]

From 8156627829bcc26b38bd6d2c7921289f50ad1ad0 Mon Sep 17 00:00:00 2001
From: Jaesup Kwak <veshboo@gmail.com>
Date: Wed, 20 Dec 2017 17:11:06 +0900
Subject: [PATCH] Enable plugins for ns xwidget webkit (Bug#29565)

Enable plugins for ns xwidget webkit if
'xwidget-webkit-enable-plugins' is non-nil.

* lisp/xwidget.el (xwidget-webkit-enable-plugins)
* src/nsxwidget.m (XwWebView::initWithFrame)
---
 lisp/xwidget.el | 5 +++++
 src/nsxwidget.m | 5 +++++
 2 files changed, 10 insertions(+)

diff --git a/lisp/xwidget.el b/lisp/xwidget.el
index a218868965..901a6be9a2 100644
--- a/lisp/xwidget.el
+++ b/lisp/xwidget.el
@@ -300,6 +300,11 @@ xwidget-webkit-callback
 
 (defvar bookmark-make-record-function)
 (defvar isearch-search-fun-function)
+(when (memq window-system '(mac ns))
+  (defvar xwidget-webkit-enable-plugins nil
+    "Enable plugins for xwidget webkit.
+If non-nil, plugins are enabled.  Otherwise, disabled."))
+
 (define-derived-mode xwidget-webkit-mode
     special-mode "xwidget-webkit" "Xwidget webkit view mode."
     (setq buffer-read-only t)
diff --git a/src/nsxwidget.m b/src/nsxwidget.m
index 7895c8bed6..ee295518b8 100644
--- a/src/nsxwidget.m
+++ b/src/nsxwidget.m
@@ -79,6 +79,11 @@ - (id)initWithFrame:(CGRect)frame
   [configuration.preferences setValue:@YES
                                forKey:@"developerExtrasEnabled"];
 
+  Lisp_Object enablePlugins =
+    Fintern (build_string ("xwidget-webkit-enable-plugins"), Qnil);
+  if (!EQ (Fsymbol_value (enablePlugins), Qnil))
+    configuration.preferences.plugInsEnabled = YES;
+
   self = [super initWithFrame:frame configuration:configuration];
   if (self)
     {
-- 
2.15.0


  parent reply	other threads:[~2017-12-20  8:25 UTC|newest]

Thread overview: 41+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-04 16:44 bug#29565: [PATCH] Support xwidget webkit for macOS X Jaesup Kwak
2017-12-04 20:59 ` Alan Third
2017-12-05  6:01   ` Jaesup Kwak
2017-12-05  7:55     ` Jaesup Kwak
2017-12-05 20:00       ` Alan Third
2017-12-06  5:59         ` Jaesup Kwak
2017-12-06  6:20           ` Jaesup Kwak
2017-12-13 11:15 ` Jaesup Kwak
2017-12-13 11:27 ` Jaesup Kwak
2017-12-13 16:13 ` Jaesup Kwak
2017-12-15  2:01 ` Jaesup Kwak
2017-12-15  2:27 ` Jaesup Kwak
2017-12-15 16:06 ` Jaesup Kwak
2017-12-20  2:39 ` bug#29565: [PATCH] Fix compile failure for GTK xwidget (Bug#29565) Jaesup Kwak
2017-12-20  8:25 ` Jaesup Kwak [this message]
2017-12-21  4:12 ` bug#29565: [PATCH] Support file download and upload (Bug#29565) Jaesup Kwak
2018-03-30 11:48 ` bug#29565: [PATCH] Support xwidget webkit for macOS X Alan Third
2018-03-30 12:19   ` Jaesup Kwak
2019-09-28 23:52 ` Stefan Kangas
2020-08-10 13:55   ` Lars Ingebrigtsen
2020-08-10 19:06     ` Alan Third
2020-08-11 11:04       ` Lars Ingebrigtsen
2020-08-11 15:22         ` Eli Zaretskii
2020-08-11 16:26           ` Lars Ingebrigtsen
2020-08-11 18:28             ` Eli Zaretskii
2020-08-11 19:26               ` Lars Ingebrigtsen
2020-08-11 19:33                 ` Eli Zaretskii
2020-08-12 10:44                   ` Lars Ingebrigtsen
2020-08-11 19:56             ` Alan Third
2020-08-11 19:58               ` Lars Ingebrigtsen
2020-08-11 20:18                 ` Alan Third
2020-08-11 20:29                   ` Lars Ingebrigtsen
2020-08-11 20:35                     ` Alan Third
2020-08-11 20:50                     ` Lars Ingebrigtsen
2020-08-12  3:46                       ` Unknown
2020-08-12 10:05                         ` Lars Ingebrigtsen
2020-08-12 16:34                           ` Alan Third
2020-08-12  2:26       ` Richard Stallman
2020-08-12  4:13         ` Eli Zaretskii
2020-08-12  4:27           ` Eli Zaretskii
2020-08-13  3:43           ` Richard Stallman

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAADX8xJ4=fJNSW8b8xHN6k5656JQAHH6RmfD148WxBvfd6G3Uw@mail.gmail.com' \
    --to=veshboo@gmail.com \
    --cc=29565@debbugs.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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).