From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#51674: 29.0.50; [PATCH] Fix hang when displaying xwidget script dialog Date: Tue, 09 Nov 2021 13:46:02 +0800 Message-ID: <87y25xdgpx.fsf@yahoo.com> References: <87fss7s8gr.fsf.ref@yahoo.com> <87fss7s8gr.fsf@yahoo.com> <87a6ifb4o6.fsf@gnus.org> <87mtmfqk9e.fsf@yahoo.com> <87mtmf9pcy.fsf@gnus.org> <87a6ifqjz3.fsf@yahoo.com> <87ilx39na0.fsf@gnus.org> <87r1brp3c0.fsf@yahoo.com> <87y25z87jl.fsf@gnus.org> <87ee7rp238.fsf@yahoo.com> <87pmrb8715.fsf@gnus.org> <87wnlilzk8.fsf@yahoo.com> <874k8mrl70.fsf@gnus.org> <87pmr9ncus.fsf@yahoo.com> <87v911rj4h.fsf@gnus.org> <87r1bprixm.fsf@gnus.org> Reply-To: Po Lu Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2222"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: 51674@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Nov 09 06:47:32 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1mkJyl-0000Q6-OF for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 09 Nov 2021 06:47:31 +0100 Original-Received: from localhost ([::1]:38212 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mkJyk-0003Hq-Bf for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 09 Nov 2021 00:47:30 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:48816) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mkJyI-0003HR-BR for bug-gnu-emacs@gnu.org; Tue, 09 Nov 2021 00:47:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48830) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mkJyI-0005dU-3G for bug-gnu-emacs@gnu.org; Tue, 09 Nov 2021 00:47:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mkJyI-0005Ko-28 for bug-gnu-emacs@gnu.org; Tue, 09 Nov 2021 00:47:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Po Lu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 09 Nov 2021 05:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51674 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 51674-submit@debbugs.gnu.org id=B51674.163643678520459 (code B ref 51674); Tue, 09 Nov 2021 05:47:02 +0000 Original-Received: (at 51674) by debbugs.gnu.org; 9 Nov 2021 05:46:25 +0000 Original-Received: from localhost ([127.0.0.1]:60374 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mkJxd-0005Jp-IU for submit@debbugs.gnu.org; Tue, 09 Nov 2021 00:46:25 -0500 Original-Received: from sonic313-10.consmr.mail.ne1.yahoo.com ([66.163.185.33]:33174) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mkJxY-0005JV-Ls for 51674@debbugs.gnu.org; Tue, 09 Nov 2021 00:46:20 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1636436770; bh=XWDZdu1A23q6XniUWzL4ihl3CwVrIeABblIZ66K/SD8=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=jqjmte8yvYv7zstRhXHWIMfk4jQE7f+UwFQJaKc0Cb6FBvfIt5OrNNzZkHXf1uvjxQyGi1xFKOZqBhg6ipL3Cd9T6VwtYUjFdGaTfB/3CWdGucHWB6ARgTz1TpaxO2Lt39XbiaE7uCu02Bt7MyxjoBeAYacs78PHAut7TGdWpN6qP+N7+cXT464Bq6to5IrXBwBN+hmIIreGeU4bEHkm/Jpv08TzgP+J3JA0y4Qr1UZMA4W6JtTfJhUNfWlJudpgYxtrE+tMHG/TemVWtruCPt0Rc5qcRFH23yinEmz+OFLHQ2opgILQteiDfcdErZ6kYh7ZdorbHGE+a31DTjmJCA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1636436770; bh=oN2ddYebIiO8aDeCF5ttuXoJkXXoqisc219HK7DiiUK=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=ncyikZbl5a+hHfNgw8eps2CIPoSQPO4U+q+mC7z7XsdzRt1n4UvEF1/j4obvsyTJG1pZ/hlBnDgeQERYH/iZnVC/KF8l5DDHV+fokD4/KGK6bCks91lNWOwwiBtMWvsP9qC8dfkfVy5dW6PZl/jgC75LN8pwTPxJ7WYaA0cqTYmsMgdkz4aboLG66ZSMbQjTUinjXR0+KC5cRdKVbycTjKuIptcCpjSBIw7uoWtELzXfardovdcQYlyPJKN7gJvJz7+j1pIE1B45RnKtoq6EGaVkuUxJO5nRLaiz+QnXswk4YlKpVPYgYl64mnFBpCOBkvIvoK1FEcGyL7tvcQOaKg== X-YMail-OSG: rI8EJyEVM1mI_Yqx94CRAyFBxN6SwpLCy5yD80kO7_3Wn5dQDKIB41D.Y79.jXI 3fsg.R080Av201jIpdFCE.7abCp362DU.ZfbA8.11jYTJN__dUIzxYRtp3W1MDzsDv9UV8N4oFNa ErBbNJs._fZo4LNChznh4WYOcNYf1uef8v4FGUCB1vUXsmhyKdvipKYQlWzjYs_tdbVrpNz0I9c7 vZt5vEohjMRb_WuqAHjFCS4rRa0xCSmMvAlvnBJ1hMby9OUjn_DCSdtzQLb8WTa1ZFyf5i3KMH5f LGq_rIb.AExf.OmnA_tLhI0M5TTX.6L1E5RM8Iwrdh9TblFEzVNdL.p2E4IMEPD0x77Fguv62wHc fThKiqVfSD1qaKxocp2EttmBA.oOSFObS_Rv_j97hHa1i1ZUPvJZ3FQrx8gAMQXy_Rb6w_BvODON eP.4m1KJQlng9bOlNJe5ZsV24_yr3UyGE2wX1W4xloM90IEyt2Sg71mDLG_JTS_Sc4r76qspCtyQ GaNA.tWk3x6EYACqsclaVwleQkuntLfBRXSQtkH.LNBjPwBCiVRAwui_E2eSoWWhPZ_oEeixfeQG 372t3UZ5UkEouz.0PbCzufWDLJ0bOKxD.ct1tqyWixDpG62xna2Ax0_udo5xghfi.9bubI3uRyri 86L4RSxk2LqjeAezud_gGWO6WDFPRwvR0khJ76l9YOb8raF2TD4yQOphbj7uCsJ2n1jdvoTLy4OS YE2a8xTF2xnbAyjjxpLp7ohrvVqygIj7tSLUTKlg09YKOebXkKYqiy5T1Pchxx.wG2SruNwHamu6 VvK3VbeVW8nnxQddrUkIciDWKlTEXCSCKDl8bhrZqp X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic313.consmr.mail.ne1.yahoo.com with HTTP; Tue, 9 Nov 2021 05:46:10 +0000 Original-Received: by kubenode515.mail-prod1.omega.sg3.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 79ad6290ab02ffaa921a73dc7f86de57; Tue, 09 Nov 2021 05:46:05 +0000 (UTC) In-Reply-To: <87r1bprixm.fsf@gnus.org> (Lars Ingebrigtsen's message of "Tue, 09 Nov 2021 06:34:29 +0100") X-Mailer: WebService/1.1.19266 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:219405 Archived-At: Lars Ingebrigtsen 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("") > > 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?