https://www.freedesktop.org/wiki/Accessibility/AT-SPI2/
In there is a D-Bus socket used to communicate with tools like x11/gnome/orca. Use orca(1) -s and tick the 'Speak object under mouse' box to hear it reading out elements, texts, etc. I'm new to accessibility features and noticed that browsers wouldn't work whereas other ports without pledge/unveil would. Patch is for Firefox and Firefox ESR. Will check the Chromes next. Feedback? Objection? OK? Index: www/firefox-esr/Makefile =================================================================== RCS file: /cvs/ports/www/firefox-esr/Makefile,v retrieving revision 1.202 diff -u -p -r1.202 Makefile --- www/firefox-esr/Makefile 1 Aug 2023 14:04:39 -0000 1.202 +++ www/firefox-esr/Makefile 4 Aug 2023 22:19:39 -0000 @@ -7,6 +7,7 @@ MOZILLA_BRANCH = release MOZILLA_PROJECT = firefox-esr MOZILLA_CODENAME = browser MOZILLA_DIST = firefox +REVISION = 0 WRKDIST = ${WRKDIR}/${MOZILLA_DIST}-${MOZILLA_DIST_VERSION:C/esr//} HOMEPAGE = https://www.mozilla.org/firefox/organizations/ Index: www/firefox-esr/files/unveil.main =================================================================== RCS file: /cvs/ports/www/firefox-esr/files/unveil.main,v retrieving revision 1.9 diff -u -p -r1.9 unveil.main --- www/firefox-esr/files/unveil.main 22 Feb 2023 11:19:27 -0000 1.9 +++ www/firefox-esr/files/unveil.main 4 Aug 2023 22:21:22 -0000 @@ -56,6 +56,7 @@ # given variable if it exists in the environment, otherwise defaulting to # ~/.cache, ~/.config, and ~/.local/share $XDG_RUNTIME_DIR/dconf rwc +$XDG_CACHE_HOME/at-spi rw $XDG_CACHE_HOME/thumbnails rwc $XDG_CACHE_HOME/mozilla/firefox rwc $XDG_CACHE_HOME/mesa_shader_cache rwc Index: www/mozilla-firefox/Makefile =================================================================== RCS file: /cvs/ports/www/mozilla-firefox/Makefile,v retrieving revision 1.552 diff -u -p -r1.552 Makefile --- www/mozilla-firefox/Makefile 1 Aug 2023 13:57:44 -0000 1.552 +++ www/mozilla-firefox/Makefile 4 Aug 2023 22:18:47 -0000 @@ -8,6 +8,7 @@ MOZILLA_PROFDATA_TASKID=cT7BagakRXq_sxHO MOZILLA_BRANCH = release MOZILLA_PROJECT = firefox MOZILLA_CODENAME = browser +REVISION = 0 WRKDIST = ${WRKDIR}/${MOZILLA_DIST}-${MOZILLA_DIST_VERSION:C/b[0-9]*//} HOMEPAGE = https://www.mozilla.org/firefox/ Index: www/mozilla-firefox/files/unveil.main =================================================================== RCS file: /cvs/ports/www/mozilla-firefox/files/unveil.main,v retrieving revision 1.16 diff -u -p -r1.16 unveil.main --- www/mozilla-firefox/files/unveil.main 22 Feb 2023 11:20:27 -0000 1.16 +++ www/mozilla-firefox/files/unveil.main 4 Aug 2023 22:21:16 -0000 @@ -56,6 +56,7 @@ # given variable if it exists in the environment, otherwise defaulting to # ~/.cache, ~/.config, and ~/.local/share $XDG_RUNTIME_DIR/dconf rwc +$XDG_CACHE_HOME/at-spi rw $XDG_CACHE_HOME/thumbnails rwc $XDG_CACHE_HOME/mozilla/firefox rwc $XDG_CACHE_HOME/mesa_shader_cache rwc