unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Po Lu via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: 51674@debbugs.gnu.org
Subject: bug#51674: 29.0.50; [PATCH] Fix hang when displaying xwidget script dialog
Date: Tue, 09 Nov 2021 13:46:02 +0800	[thread overview]
Message-ID: <87y25xdgpx.fsf@yahoo.com> (raw)
In-Reply-To: <87r1bprixm.fsf@gnus.org> (Lars Ingebrigtsen's message of "Tue, 09 Nov 2021 06:34:29 +0100")

Lars Ingebrigtsen <larsi@gnus.org> writes:

> It currently creates a temporary file, and I'd like to avoid that.  I
> thought about using xwidget-webkit-execute-script to do something like
>
> document.append("<video...>")
>
> but I guess I need to open a "empty" page first?  (I haven't actually
> tried.)  Do you have any advice here?

I think the cleaner solution would be to introduce a function that wraps
`webkit_web_view_load_html', but since the eww code also has to support
macOS, someone here who knows his way around that system will have to
implement it as well.

Also, the WebKit widget loads "about:blank" by default, as long as
RELATED is nil when passed to make-xwidget (this is necessary due to how
WebKit treats related widgets internally), so you shouldn't have to load
an empty page first.

WDYT?





  reply	other threads:[~2021-11-09  5:46 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <87fss7s8gr.fsf.ref@yahoo.com>
2021-11-08  2:10 ` bug#51674: 29.0.50; [PATCH] Fix hang when displaying xwidget script dialog Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-11-08  5:24   ` Lars Ingebrigtsen
2021-11-08  5:38     ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-11-08  5:40       ` Lars Ingebrigtsen
2021-11-08  5:45         ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-11-08  6:25           ` Lars Ingebrigtsen
2021-11-08  6:29             ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-11-08  6:50               ` Lars Ingebrigtsen
2021-11-08  6:56                 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-11-08  7:01                   ` Lars Ingebrigtsen
2021-11-09  4:31                     ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-11-09  4:45                       ` Lars Ingebrigtsen
2021-11-09  4:59                         ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-11-09  5:30                           ` Lars Ingebrigtsen
2021-11-09  5:34                             ` Lars Ingebrigtsen
2021-11-09  5:46                               ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2021-11-09  6:10                                 ` Lars Ingebrigtsen
2021-11-09  4:45                   ` Lars Ingebrigtsen

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=87y25xdgpx.fsf@yahoo.com \
    --to=bug-gnu-emacs@gnu.org \
    --cc=51674@debbugs.gnu.org \
    --cc=larsi@gnus.org \
    --cc=luangruo@yahoo.com \
    /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).