Subject: Re: bug#72848: [PATCH RESEND] xwidget: Fix xwidget-at misinterpreting non-xwidget text-properties

From: Eli Zaretskii <[email-masked]>
Date: Thu, 29 Aug 2024 15:13:58 +0300

> From: George Huebner <[email-masked]>
> Date: Tue, 27 Aug 2024 20:03:44 -0500
> 
> xwidget-at assumes the text-property at `point-min` either doesn't
> exist or is an xwidget, and can improperly access fields. This 
> patch
> just returns nil if the text-property isn't an xwidget.
> 
> This is definitely an edge case; I use a package called org-modern
> where headlines are formatted with text-properties, which is how I
> found the bug:
> Debugger entered--Lisp error: (wrong-type-argument listp #("◉" 0 1
> (face org-modern-symbol)))
>  xwidget-at(1)
>  xwidget-webkit-current-session()

Thanks, installed on the emacs-30 branch, and closing the bug.