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 04:17:09 +0000 Message-ID: <186D6762-A6AC-4753-9C3B-DBD482EB7C82@stanford.edu> 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> 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="31761"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Andrew De Angelis , "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:52:30 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 1omwwP-000806-7S for ged-emacs-devel@m.gmane-mx.org; Mon, 24 Oct 2022 14:52:29 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1omwbJ-0007Pq-Sa; Mon, 24 Oct 2022 08:30:41 -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 1omots-0005gE-A9 for emacs-devel@gnu.org; Mon, 24 Oct 2022 00:17:20 -0400 Original-Received: from mx0b-00000d04.pphosted.com ([148.163.153.235]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1omotp-0005rz-Nd for emacs-devel@gnu.org; Mon, 24 Oct 2022 00:17:20 -0400 Original-Received: from pps.filterd (m0102891.ppops.net [127.0.0.1]) by mx0a-00000d04.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 29NAVh3v018537; Sun, 23 Oct 2022 21:17:15 -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=rTVo+aeNp6a8BZVfwMubtsk41BbvWJYnnd89rA37ZSA=; b=QmnLRp9Xakzze/UkJAVLyFlK2weCGW80Qq6gmmC7k86A+W5RewWwumb7tjZqw5exxQFh HK/dUQEj5cix5vUIaW+ZJrjEiuIMkdGi7LM3YsO2+sCHGPlzi38GTA7UDgkJdKllZw4a KTlvTcIAjb8QbX8WREI1JpUZ/QlllU3lChnndfgiRaHZBIBUWb+Ovvv8ES4HjvFOgCPJ VsDUwFmicf+v35twI8wmO6L3Tu5LrThW75JPLVTiV+gzPj1rWn2FbgHSxhmEbHZ9I3Uy KjvdIO5hlA+4sLabI0A7SCcAYpybcQV4NKyV0gakwJ2Dyf8QUhQmuaBI5NHV80hlHQfH cQ== Original-Received: from mx0a-00000d03.pphosted.com (mx0a-00000d03.pphosted.com [148.163.149.244]) by mx0a-00000d04.pphosted.com (PPS) with ESMTPS id 3kd0bw2mun-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sun, 23 Oct 2022 21:17:15 -0700 Original-Received: from pps.filterd (m0190085.ppops.net [127.0.0.1]) by mx0a-00000d03.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 29O1LGAW003196; Sun, 23 Oct 2022 21:17:14 -0700 Original-Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-00000d03.pphosted.com (PPS) with ESMTPS id 3kcf4edvkx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sun, 23 Oct 2022 21:17:14 -0700 Original-Received: from m0190085.ppops.net (m0190085.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 29O4CZD8020537; Sun, 23 Oct 2022 21:17:13 -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 3kcf4edvkv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sun, 23 Oct 2022 21:17:13 -0700 Original-Received: from pps.filterd (m0167933.ppops.net [127.0.0.1]) by mx0a-00000d06.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 29O454o2008108; Sun, 23 Oct 2022 21:17:13 -0700 Original-Received: from nam10-mw2-obe.outbound.protection.outlook.com (mail-mw2nam10lp2108.outbound.protection.outlook.com [104.47.55.108]) by mx0a-00000d06.pphosted.com (PPS) with ESMTPS id 3kcc2a9hk9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sun, 23 Oct 2022 21:17:13 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VKmXLz9x7TCQJ1tauxaVL0xyTcXs7pHXcQEhD8Hx52TZm8zD5zIxvkoq+mUlg+JIcDELGevzRjf+sHVWgW2p241bANgLifSsAOG44Y//5wYxeezKqCm9MA+LaF0AH6oe8NoHriC/5a0sbwYRZVeFGgK9MjJC45z4LbodjKwayAnAW+URD/LW1k85C4WCn//h668v4Pk5CgEgYOoB51Are4UC/+Q6SnouMeJpYVi2n/aJ4tyAsZbWqpWOa5mzNcV6ObFWuZQNKxoTl5lbmK9uJ2ghVXKnPySnIE2rK/Rn3xTnHzgVEWJrzbyr3EFDbXj+KEwLAUKqzxYz5YlFtzfWVA== 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=rTVo+aeNp6a8BZVfwMubtsk41BbvWJYnnd89rA37ZSA=; b=GmVGRIjSwzsHi7SR6wpw5TWrANBrcFjw4Iyl3iKSqg0mvSdySSclQ94OtvEtLGIlBb+Eq2NWnMyW9I83F3t2WRhhjJeOHsydTbv8tyFmDALfKiB9A0liaPv+zm0VnfN+DqQes5blbdw8mOjw6i2oEdRve838V3ANJZsHo0jnAQ21mqavG+2TvRAWxusEw339nVDD76SmnNm9X8tBsyrnwTGgeGjtL8/s+01Pun37n0dRBHLl+4I5XvtSFduLF89K7d1rtvx746p5TYiRhNr79XMJ6n1usWxhXjcwXuGQDshHdj4i/nqprcxsxlrDA6+ax2PiPOgVz7OdYzTyTpUN4g== 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 MN2PR02MB7070.namprd02.prod.outlook.com (2603:10b6:208:1f6::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5746.21; Mon, 24 Oct 2022 04:17:09 +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.021; Mon, 24 Oct 2022 04:17:09 +0000 Thread-Topic: [PATCH] Add user content APIs for WebKit Xwidgets Thread-Index: AQHY35b+ISYWRDJ9PkKWpJcMREJMA64NdpqagAAC6wCAAAZiuoAA5JIAgABJuICAAGkDAIAAOsDygADL8ACAAFObloAAIKuAgAADXkSACyozAIAAHdangAC9fgCAACV29oAAP0MA In-Reply-To: <87zgdm3vx6.fsf@yahoo.com> Accept-Language: en-US Content-Language: en-US x-ms-publictraffictype: Email x-ms-traffictypediagnostic: BY5PR02MB6771:EE_|MN2PR02MB7070:EE_ x-ms-office365-filtering-correlation-id: 784d2c7b-8493-414d-3ec0-08dab5769e71 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 0B4LlsNna+vSsWuwPfoDx8PHF1WyyNkEt6vfpvmg+2bDB0uV73zNOP5jJHvLUmDi1fNL3X8ECDe1gJL9v9mBgTuvtaUi6W7WNuhZz975opGIs1N8F0AYacK86XsLX8vF+n5n/L66/yGJGgbXeEHM+/IHUp+rcXrpb6Kpnsis1zdTq8b5ms0vzK780ZcgKPseCHDAJYe6LlFkKoK26hzTbXvtl/K8EkitjwcX88WbemWO4cMRTPPX2ULD/LBDjhdCJRc/KAQ6mQArmL9g6IO/Y/aW7oZa8uZvouotD1gMPxSMbihAY3pPrvMG3xPo80CdaPEQ3UMoTxATnn82dLTfbOrS27SNEuZIuLdzI4JfiagJ1bcxUL1yY8Z256qHfJIKAxD17fjLnS0zj4iKiFggA55WNtC/cLhX65xW6r0svukeshNhHq9jpnwOM0v6EtHEeQGRGBrO/v7U0wigO5gR+V2xXH2zvr5Nr5P/9W0qNqBSXLf+1Nku862YGpCtDm9WSnLQm6lED6Ew/qDfXvlqYD+pHIDqKpGqEPG9EoLs5NsFd9ALf5QskgnPq+d0PDNSVVkKnuHfvz7em/1h3II3LPP/bE4XgJaJ3rzTnTuorjQK3w60y5/osqLuL/XXyt1L9QZh31LRWQxWBfA7iPEa/ZQzv7g9DtY7ZLVObjVWa65FWzz4VLc5bs76a7c2JTqX5QVhLw/BKq0uHGV/idnS3XMZ0F/S+y4XcHsGtK0ZPVPS09ToDBfjQMpFs+uRX RjmpbB5w9T4aZyM8aobH4tEXFoVlcoz6f8JEY2MkAmjUiE= 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)(376002)(346002)(366004)(39860400002)(451199015)(53546011)(66946007)(91956017)(6506007)(8676002)(66446008)(64756008)(76116006)(66476007)(4326008)(83380400001)(66556008)(2906002)(2616005)(38070700005)(36756003)(41300700001)(26005)(75432002)(6512007)(5660300002)(41320700001)(478600001)(186003)(122000001)(8936002)(86362001)(38100700002)(71200400001)(6486002)(786003)(316002)(6916009)(54906003)(33656002)(45980500001); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?3Rs06z8tgwV72FfCckb5NfvjRTz22Ifowj/kl8teugjPyFSo5OGSkabt9Ncv?= =?us-ascii?Q?jjSjIMo26Fp6NkvTUl/AbSHxGxy1U9C9W2oaJgirWOnQhbu14QSd06SyyT06?= =?us-ascii?Q?9FISU2TP1iTBl2ut7duyUNuW08iXB03WQucqTTZ6NmtvE+Vyyy2BylGwKFnJ?= =?us-ascii?Q?CJ7xGZADDKJeU4rYTXMgQR5LNZhAqX3PiTxYPP+wKtbEo6X72KCZoUIlfj1u?= =?us-ascii?Q?8r/n4sdkhVxdOqNWi3IeZ/L6ZlbneBShsY7myTnuycejkCFdjfVRoUwqXH7r?= =?us-ascii?Q?DAZdF8ReYoAe1zNpbmEor6e3gI5rOK98JFjRqyif5UIVW0/EzCCSYL8aD0D8?= =?us-ascii?Q?eoeZbcEAwiRKK/5DCiQ33Je5heCiCG9OrTvZNwBWTSABPitOnF1/EaC4wMHn?= =?us-ascii?Q?ohTWesFyqtIJU22EFLT6tyn6tg2grvQO2FR7vlc8rI3zzK29EW2CeKjRPWL1?= =?us-ascii?Q?lUD+r+mUMt6K89oVhJ0ip8zM2Ed+zEGgfe9fz0zAyCIMKmTA11B5QLAo91aD?= =?us-ascii?Q?rIv7f9tH0P5K3b8GIG6h+/YxQAtC59ltUhfELOhC/1unGoUI+be9jTDj/QNt?= =?us-ascii?Q?t6Ai6I0QSjGd6EVt467KTKf2JtQmVm027T+G9kgAc66EUAM1xwGZduEr3aMW?= =?us-ascii?Q?Sw Content-ID: 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: 784d2c7b-8493-414d-3ec0-08dab5769e71 X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Oct 2022 04:17:09.4711 (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: yX64wQC82zPqNB3xZW3TrzRa/7RqUWcI9JQ82vp60WeFlSzDFovIxCg3RVLuHJSR5ojQY7MvfhOvleQpbUrtDQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR02MB7070 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-GUID: zFa-1sZfEd-AIsuET3voPNOSO8WUamF4 X-Proofpoint-ORIG-GUID: zFa-1sZfEd-AIsuET3voPNOSO8WUamF4 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 suspectscore=0 malwarescore=0 lowpriorityscore=0 phishscore=0 priorityscore=1501 spamscore=0 mlxlogscore=901 mlxscore=0 adultscore=100 bulkscore=0 impostorscore=0 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2209130000 definitions=main-2210240026 Received-SPF: pass client-ip=148.163.153.235; envelope-from=qthong@stanford.edu; helo=mx0b-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, RCVD_IN_MSPIKE_H2=-0.001, 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:298361 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? Then we have to inspect the xwidget-plist in the C function kill_xwidget and migrate a specific subset of properties... 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? Best, Qiantan > On Oct 23, 2022, at 5:30 PM, Po Lu wrote: >=20 > Qiantan Hong writes: >=20 >> Applying to all related Xwidgets sound like a good idea. I think we shou= ld >> formalize the "group of related Xwidgets" as some kind of object? Maybe >> a record type implemented in Lisp, or a pseudo vector (which I don't kno= w >> much about how to implement). An alternative is to expose content manage= r >> as a pseudovector, which will in fact have 1-to-1 correspondence with "r= elated >> group", but I like related group more because it feels like a nicer abst= raction. >=20 > I don't think that is necessary. There should at most be a function > that returns a list of all related xwidgets. >=20 > Pseudovector types are a limited resource. There can only be 64 at any > given time, so it would be a good idea not to waste them on such > trivialities.