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: Mon, 08 Nov 2021 14:29:51 +0800 Message-ID: <87r1brp3c0.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> 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="29293"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.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 Mon Nov 08 07:31:49 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 1mjyC5-0007Se-29 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 08 Nov 2021 07:31:49 +0100 Original-Received: from localhost ([::1]:33636 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mjyC3-0000Aq-NI for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 08 Nov 2021 01:31:47 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:45984) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mjyBL-00008V-Vi for bug-gnu-emacs@gnu.org; Mon, 08 Nov 2021 01:31:05 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44285) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mjyBK-0007Ky-NU for bug-gnu-emacs@gnu.org; Mon, 08 Nov 2021 01:31:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mjyBK-000825-GC for bug-gnu-emacs@gnu.org; Mon, 08 Nov 2021 01:31: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: Mon, 08 Nov 2021 06:31: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.163635300730469 (code B ref 51674); Mon, 08 Nov 2021 06:31:02 +0000 Original-Received: (at 51674) by debbugs.gnu.org; 8 Nov 2021 06:30:07 +0000 Original-Received: from localhost ([127.0.0.1]:55831 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mjyAR-0007vM-4F for submit@debbugs.gnu.org; Mon, 08 Nov 2021 01:30:07 -0500 Original-Received: from sonic314-22.consmr.mail.ne1.yahoo.com ([66.163.189.148]:34227) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mjyAO-0007ty-Ti for 51674@debbugs.gnu.org; Mon, 08 Nov 2021 01:30:05 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1636352999; bh=/4XTGymG428/u5CHsuxuNAgwEpnf3uNfPeCqTAqFtWw=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=BhvNvQsratk1o9i3GK1uOZwbEGw+4PD/OKRrxXQE7eYei69jetbo2ObNHn1wVpUtACTk0JzH2JQx7A6GMXsDUb6CYQNEebaa/HLVsTArxV+2iB5O4vB1T93E7bdBBQHiwkqimNaC4mKdNRNaHwmc/wOSsI06md8QKRrbO/zCRtNuLalYVVYcuyTOkbM95YYOfhxiAKVz2vjb83jOiK7TYTyBG/FSM/RJn+nVDce1njJTQp60+K4aUscXAM32jdNanDr57Blw/XxK7oPpNqNJQ0ZXNOttrubhRjr3qaerSOQwLa6WC3zqyyUKJij8etanwlpU8lMsMhuO7v3Cn5NcTQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1636352999; bh=cXFDVnAUPYtK0l3qxcWqxUn1tV8aHo/ApYJywkisiuw=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=H8+I5gYJmajMCOvmY2lFSHZWw+sNsAAco9gfAmDyBeDqEJIAs0NJXNn+NBr2YqW+GX2Hun068IcTbl9YpG8UKQrb9kb/+SOLPrm/9XxwuN4lQl4mhuo2PpXY8GwNLvaNFNxgVV9ps7UzQRYVQNogjSSjrrP0elxTKMIvet85sKQ0czAylujb8kKQBMz9NC0v+Sda8c4sTzVN3VTbyEsxyQ7Oqpf+1nzU57hZEMJALPIsnfohnsCec/p1ANOC2SW5z5fjHAbVkx2f6/Lh/MZv7FKI+Osqku0srlFWWLXLk2xkxWSvK2+8ZQPlPo9l6G2SERME7ES5R4Yvw0MzHLopQA== X-YMail-OSG: FDqL3FgVM1nyOANW2xDodjI7F5ymndFBsfKZo7v0Kghyq90xTX_yXbr411qVN5l yZJnYTSFKCqi.V_9clTmfrXBNT.3tEX0uPRcQqURZBtCyZC08XGvsMCr5YfW5.tRtE8Wp04_OElJ lXFtkroYWCbt_DZPGsek.oGBS_lsOuN6BJ1n06eWxOcFmjbWR8OYYG2XcEyk0MB_ftVqKdE6FnCM FuYrVf67seVEnz9qYHpSKNsDOwAZRcFTcxUwZVyFP_XjNnWQPYbZM8n_cSpZwDkiVMkOBMAjBecU UhdN9wyokOhXkcGttFv7Yp9gET3Av8VqqFWUGHYjzFQ6zFXpPJcIUddso2VxfrlNKb6RevHTEK4D A1mCvHMoBKOp4pk4nWpry4_0YyN.17ulLexsdmhvS5yc.YEmqigHoLcugMsTNOnngVAwqOOcgM4g LrRLRDD8HLY8_5SIuD4uWJIC8FcUMkmE98rjCwXBuT1xBsI8ZA99KILk0fgL8zOLPWpJuZXeRmvV 9pOtJAXwcoc9GqjagChl_EiEHYOSoMijm8L16q2Gv6vmN7zZoFM1j7ojNqngIfzYiN_Ixy_6QOqn iCJVTRRctlMfoJBFjvDiNgOCX7MvWdcQh9rqplRQ1xBaMdQw68cgl5D7IkQfZlNmZm6jTb9_KtKe s31FB5ZfabD1aCTqT3p_pSluo4bMwJK3Dk9N1Mbx.gc_rBJQ0Fdeu.pqIvXPS5sVv5Vh7gvOBkJm mw3MMU01y6ZzHam6OJNDtlIwErqT97tep1AB7lTeHemyS5snTwCCYKvCW9wWm5pAkrfx1jUYHYBH w6FoecDQdgvPR8wh4Wwe5sA6.Jqf4OLIc7dAwRM6O1 X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic314.consmr.mail.ne1.yahoo.com with HTTP; Mon, 8 Nov 2021 06:29:59 +0000 Original-Received: by kubenode501.mail-prod1.omega.sg3.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID d877f252c1247627242b403772f1203f; Mon, 08 Nov 2021 06:29:54 +0000 (UTC) In-Reply-To: <87ilx39na0.fsf@gnus.org> (Lars Ingebrigtsen's message of "Mon, 08 Nov 2021 07:25:43 +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:219327 Archived-At: Lars Ingebrigtsen writes: > (progn > (require 'xwidget) > (setq widget (make-xwidget 'webkit > "Video" > 700 > 500 > nil > (current-buffer) > (xwidget-webkit-current-session))) > (insert > (propertize > "[video]" > 'display (list 'xwidget :xwidget widget))) > (xwidget-put widget 'callback #'always)) > (xwidget-webkit-goto-uri widget "file:///tmp/vid.html") > will play the .mp4 video... but only on Macos. On this Debian laptop, > it just shows the controls, and doesn't play the mp4. Is this due to > platform specific limitations? (It won't play Youtube, either, with the > normal `xwidget-webkit-browse-url'.) That's weird, because video works here. Does it work in another WebKitGTK based browser, like Epiphany, on your Debian system? Thanks. > But on Macos there's a different twist: It doesn't heed the width/height > specs, and always maximises itself to fill the frame. Which seems like > a bug. Unfortunately I don't know enough about macOS to solve the problem here. But try removing this snippet of x_draw_xwidget_glyph_string: /* On X11, this keeps generating expose events. */ #ifndef USE_GTK /* Resize xwidget webkit if its container window size is changed in some ways, for example, a buffer became hidden in small split window, then it can appear front in merged whole window. */ if (EQ (xww->type, Qwebkit) && (xww->width != text_area_width || xww->height != text_area_height)) { Lisp_Object xwl; XSETXWIDGET (xwl, xww); Fxwidget_resize (xwl, make_int (text_area_width), make_int (text_area_height)); } #endif