Tags: patch 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() In GNU Emacs 29.1 (build 1, aarch64-apple-darwin23.4.0, Carbon Version 170 AppKit 2487.5) Windowing system distributor 'Apple Inc.', version 14.4.0 System Description: macOS 14.4 Configured using: 'configure --prefix=/nix/store/ismv7jzf3hcqziq5bpjfs54zd4qfjjn7-emacs-mac-macport-29.1 --disable-build-details --with-modules --without-gif --without-jpeg --without-png --without-tiff --without-x --without-xpm '--enable-mac-app=$$out/Applications' --with-gnutls --with-mac --with-xml2 --without-ns --with-compress-install --with-toolkit-scroll-bars --with-native-compilation --without-imagemagick --with-mailutils --without-small-ja-dic --with-tree-sitter --without-xinput2 --without-xwidgets --without-dbus --without-selinux --with-xwidgets'