From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Qiantan Hong Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Add user content APIs for WebKit Xwidgets Date: Mon, 24 Oct 2022 05:44:01 +0000 Message-ID: References: <763B89A7-AF82-4AAB-A0E9-A04D9958CAE8@stanford.edu> <878rlianx4.fsf@yahoo.com> <9FF9464C-1369-423E-A581-A900D132845F@stanford.edu> <87zgdy97t1.fsf@yahoo.com> <63F00459-018C-4634-9B52-A89A3ED1AA36@stanford.edu> <0F1442C8-45E2-408C-B310-448B4A26496E@stanford.edu> <87ilklnxei.fsf@yahoo.com> <0583C9C0-9953-414E-9F51-2AEFDF225BD9@stanford.edu> <87edv8mlr5.fsf@yahoo.com> <264D17C0-1FD6-44BA-B8BE-28249374F7A2@stanford.edu> <877d10mfsw.fsf@yahoo.com> <874jvu6c3h.fsf@yahoo.com> <392D5A0E-AC2D-4582-8B81-777CB7C85D7A@stanford.edu> <87zgdm3vx6.fsf@yahoo.com> <186D6762-A6AC-4753-9C3B-DBD482EB7C82@stanford.edu> <87r0yx4w83.fsf@yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27864"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "emacs-devel@gnu.org" To: Po Lu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Oct 24 14:59:03 2022 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 1omx2j-00070H-Lc for ged-emacs-devel@m.gmane-mx.org; Mon, 24 Oct 2022 14:59:02 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1omwbL-0007RN-F9; Mon, 24 Oct 2022 08:30:43 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1omqFz-0004Nl-5u for emacs-devel@gnu.org; Mon, 24 Oct 2022 01:44:26 -0400 Original-Received: from mx0a-00000d04.pphosted.com ([148.163.149.245]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1omqFu-0000QC-QZ for emacs-devel@gnu.org; Mon, 24 Oct 2022 01:44:13 -0400 Original-Received: from pps.filterd (m0102886.ppops.net [127.0.0.1]) by mx0a-00000d04.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 29NDOEfa018778; Sun, 23 Oct 2022 22:44:07 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=stanford.edu; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-id : content-transfer-encoding : mime-version; s=pps05272020; bh=lt41IKAkXJCab+fDHZ5TVm3D/i2vSfON7ozgBhdJeKQ=; b=PhpJ0nxhEN4l1Ff2Uce6mhgt89Umi5UEZsGh+36NBeN/K5GNACWU+MwTFad9mpugOTSm Ku0EBtOH0MTww2B1H2B91sMwTASbMoTpcssb63eoC70glTTwtAydIwrvVMK+AjB6gaZd 6IbBZYTgwYrr2tBj7A7u768V1NizAMIT92WP0JJoVE5TbeUuse49SU2sHcJKcDtMwbE8 fgUkWjPXPdJdnQmMLOiYOv/nemTxLdXyNyWSGL0rkfKDu/BW25qzZqDB1bSCEimRSl1k iThHrqff2ZyFbFf/a0E2oItH+zd7mKEN65FdT7dnGHjv9Z7HP/if8mDr0wwqtqyp2Hc4 Sg== Original-Received: from mx0a-00000d03.pphosted.com (mx0a-00000d03.pphosted.com [148.163.149.244]) by mx0a-00000d04.pphosted.com (PPS) with ESMTPS id 3kcepmd5se-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sun, 23 Oct 2022 22:44:07 -0700 Original-Received: from pps.filterd (m0190089.ppops.net [127.0.0.1]) by mx0a-00000d03.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 29O5QanR009740; Sun, 23 Oct 2022 22:44:06 -0700 Original-Received: from mx0a-00000d06.pphosted.com (mx0a-00000d06.pphosted.com [148.163.135.119]) by mx0a-00000d03.pphosted.com (PPS) with ESMTPS id 3kcf1ke3er-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sun, 23 Oct 2022 22:44:06 -0700 Original-Received: from pps.filterd (m0195435.ppops.net [127.0.0.1]) by mx0a-00000d06.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 29O43sxB026148; Sun, 23 Oct 2022 22:44:06 -0700 Original-Received: from nam04-bn8-obe.outbound.protection.outlook.com (mail-bn8nam04lp2044.outbound.protection.outlook.com [104.47.74.44]) by mx0a-00000d06.pphosted.com (PPS) with ESMTPS id 3kcda51hy3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sun, 23 Oct 2022 22:44:06 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HrXEz5t7CP3NS2ioQMDDHdVqcdLYT5cTwk8Mf12VToCiviM2mzo8WuyfC/1UaMs/6jzsAvXxLnsIscce61hzV7E66FFmo90OAzz95BkTAZkZT2w7EzBOsLmR65A5isn36Jgx/shc7GJn+iAktbLukSHe5LXb50ai8KYffXGSsgHMGECFI06u/MUB3z+1amyFzxE3yTh4df4QzzY86nKTuNSjvlHRuFz+wk//mql8Enck+VwEw1D+CypvJLGRNGQj1XL4h1giRW3RWwMUqk/PuwkOnx8IxuCBXghXVYevVx56lDtB7l1uHz4t/skd7FZbOF2vhglE+lbrYXmbLmW9Pg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=lt41IKAkXJCab+fDHZ5TVm3D/i2vSfON7ozgBhdJeKQ=; b=HuXpggbTMXSW8GjbrzhhrSgNRBPUJCWd2VYbikPTqwDSer5m+uCQPobDDEsD1h8t29o6gK6LQ9Tecb7KeVmInkBRSyI6RwO84P2z6GARYbfszkLUwPlpfYpxzY9LJ7uiZuaL/QAvrf3cwsaJfdNKaXDr5AMfQ6plV8PjGKcmIrR/t/ECweKPoeoHuajRkPGISIYfJuOsQmyr9BxHOAsN0xwSqOwpzIXt1wAln/P40ofYPCnDn4SuLoNDDQ/CQp+PzW7AiAviGu0OpS1Q/oa3h8M+fdk7q9ZHEjzHkYUA0xDazwop8zj5PI/Bht4b/nvU3wGHcRVZYe0TGJgYhRxznw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=stanford.edu; dmarc=pass action=none header.from=stanford.edu; dkim=pass header.d=stanford.edu; arc=none Original-Received: from BY5PR02MB6771.namprd02.prod.outlook.com (2603:10b6:a03:200::10) by DM6PR02MB6586.namprd02.prod.outlook.com (2603:10b6:5:21b::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5746.23; Mon, 24 Oct 2022 05:44:03 +0000 Original-Received: from BY5PR02MB6771.namprd02.prod.outlook.com ([fe80::3671:4788:7f6a:e30c]) by BY5PR02MB6771.namprd02.prod.outlook.com ([fe80::3671:4788:7f6a:e30c%7]) with mapi id 15.20.5746.028; Mon, 24 Oct 2022 05:44:02 +0000 Thread-Topic: [PATCH] Add user content APIs for WebKit Xwidgets Thread-Index: AQHY35b+ISYWRDJ9PkKWpJcMREJMA64NdpqagAAC6wCAAAZiuoAA5JIAgABJuICAAGkDAIAAOsDygADL8ACAAFObloAAIKuAgAADXkSACyozAIAAHdangAC9fgCAACV29oAAP0MAgAAW2MyAAAFugA== In-Reply-To: <87r0yx4w83.fsf@yahoo.com> Accept-Language: en-US Content-Language: en-US x-ms-publictraffictype: Email x-ms-traffictypediagnostic: BY5PR02MB6771:EE_|DM6PR02MB6586:EE_ x-ms-office365-filtering-correlation-id: 63ca2894-d281-40a2-815a-08dab582c14e x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: ZoH5y2lqahvZlGE1inJkReCNO5ceaRUx0D1yL1TD+5PMQkeaFWOO/B95Ylzev7PJvoEwiCh5qhDT0PPfEgZ7GDeYE7BE5JF8GyHSwP7po/ALv7iy+Tc1TixOz4YnOLmTIcd1mothkV/lUm9Nuy/A2sO8Mej2J4QI8hwR1fbNvVmHMsnHxKYV6+sqHgdPwsoP8g30KFd1d7N5iVDBK7r0jcT+OP0etw9ik71RtIL6bSGL2WyGkK39VwhdVvqZ3fEvnMWs4PvKtDkAG4uEpYuCSSgMbt6+BDXmy83muI3IUwIk0jSa2Pl+t6J0HpbmB92c1oL+9KWNF0d2ZzuQ7CHFX4D8TVD0cKJHnUG+6eRacfgzME36fM39eCU9ucApXUo7cQz4+1UXFOhE081acyDYhQ7er3toNRsxYF9EV/XI1aYFVxMJsG6c09kY+6uPVqc+6M6dUrTr1w9LJgVIOqTP0tWI6Pck8555ztWB52+kfvDHAeI+lpfVLt5g/XSl6jgat/FDCoKEVBme9IVnC0JvNuJsJrSUSd90rASMgHoio1hkQXyNYMNN/KG22JhzQIGHvbOAI8Bv29s98k7vQJGJWNFxvye69Hp75E3Vzg83wV8DMrgnm2TR51nBGruDuqKxslVmGjG2z6L48IBIVCLuAXxR10sDJvkD3Jbyp7bavgai0MAsVunzujF918bjqVgfK04nFfAbnQha5/RRlx3KRyyMWWaFNIyXUyWlInFYKypZq41Kip/oysJiv107C 7ijyUQrFI6HNNQmkRrqpBh1847KeqfptPBK98wEJMvljEo= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BY5PR02MB6771.namprd02.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230022)(396003)(136003)(346002)(366004)(376002)(39860400002)(451199015)(2906002)(36756003)(4744005)(41320700001)(75432002)(41300700001)(8936002)(33656002)(6916009)(8676002)(76116006)(64756008)(86362001)(66446008)(66556008)(4326008)(66476007)(66946007)(786003)(91956017)(5660300002)(316002)(83380400001)(38070700005)(6512007)(186003)(2616005)(71200400001)(6486002)(26005)(6506007)(38100700002)(122000001)(478600001)(45980500001); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?m2LRTrirgLOLj5AEA4ui/KMOBLmLsGstymyiqyX1o+JuWvv2MD/2tb2i8zRF?= =?us-ascii?Q?wmKKqDSikpMs4QMt3qdc71thX6/Pi+CrVJhSpRijtWK03baOChiM5FhSNjsE?= =?us-ascii?Q?5emurgMtrp5tk1VAQ4iCmTlTGCPhOSx6OVKLdtSBqYZBSaglNzoEZeQJvJxY?= =?us-ascii?Q?lcEhZQOq3yGXMyd/OaongQYjh1a/JlwSZZBcxsOaWfSePuHLWQuwKo02rsJU?= =?us-ascii?Q?d0tNAFDO8Zld9lD1VCq/TDIXbwmF0++pOB/lUi2l51aFg6X3l7STePgkYy5L?= =?us-ascii?Q?+MUmrlteIIx/4FSfd2JknWfqwIBhA3avpGDJN3wqZKG2EJ4el9TDaIL7W87e?= =?us-ascii?Q?ehHL9ecTkqAijUi8IxkxeJ8pglHuSz6x7Ogxfo1VS/VvA5GAAOroS5rHGz2/?= =?us-ascii?Q?S1ZpJx0NYJK/vwoIEKxoavm4BsBR3fDbG7uAtejQOHyvh/1Vu88PzqT/YZHi?= =?us-ascii?Q?+qvHk/DWwjatICRdNXuCqwBxYic43giWSV5F1+fWYBzjBxp7BgwO4Eu8Cw+S?= =?us-ascii?Q?BRwPIdQLkKKWAZVavkP+ywyIIVVy7NewwZbpxrHzYuOIAb5vihJzLhlj6s44?= =?us-ascii?Q?aW3bWhOKC+2prb84q9nD0tFdULJtSJpsrS1ISn6mUJsGxN9IijDhLyFAtRL/?= =?us-ascii?Q?sn Content-ID: <3C3CFB3ECCA7F749B518A472B41055E0@namprd02.prod.outlook.com> X-OriginatorOrg: stanford.edu X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BY5PR02MB6771.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 63ca2894-d281-40a2-815a-08dab582c14e X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Oct 2022 05:44:01.9557 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 396573cb-f378-4b68-9bc8-15755c0c51f3 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: DBYCPfO1kuBrWlRhPv0JlLqezMs9KEoRyoy4ekakALWRu0cZF/ZlJ1sJRgh50supqZGWfawI1sb6xSnBqwQspg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR02MB6586 x-proofpoint-stanford-dir: outbound X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-10-23_02,2022-10-21_01,2022-06-22_01 X-Proofpoint-ORIG-GUID: AJJPRRG865wu5yIDtLyY_LrcAoQY30Ew X-Proofpoint-GUID: AJJPRRG865wu5yIDtLyY_LrcAoQY30Ew X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-10-23_02,2022-10-21_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 adultscore=100 suspectscore=0 bulkscore=0 phishscore=0 impostorscore=0 mlxscore=0 spamscore=0 mlxlogscore=412 malwarescore=0 clxscore=1015 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2209130000 definitions=main-2210240036 Received-SPF: pass client-ip=148.163.149.245; envelope-from=qthong@stanford.edu; helo=mx0a-00000d04.pphosted.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Mon, 24 Oct 2022 08:30:40 -0400 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: "Emacs-devel" Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:298362 Archived-At: >> Currently, I store the ALIST of handlers on xwidget-plist. If we're >> going to have it for groups of related Xwidgets, what is the best >> place to store it? On the xwidget-plist of the head xwidget? >=20 > In a C data structure (not the plist!) attached to the "head" xwidget. > It does not have to be accessible to Lisp. >=20 >> Or we should add another slot and provide xwidget-group-plist and >> set-xwidget-group-plist, which will only have non-NULL value on the >> head xwidget and is migrated automatically? >=20 > What slot? >=20 > I don't think it has to be exposed to Lisp at all. It's just an > implementation detail, after all. Sure. In that case, would it be appropriate for the script_message_cb to call the handler directly? Or should it emit an event and let xwidget-webkit-callback call it on Lisp side? I'm not sure how well does the former approach (which is more direct) interact with error handling/Lisp debugger.