After the forced migration of Firefox from deb to snap after upgrading from 21.10 to 22.04 all my native messaging extensions stopped working.
File this for me https://addons.mozilla.org/en-US/firefox/addon/file-this-for-me/
Open with anything https://addons.mozilla.org/en-US/firefox/addon/open-with-anything/
They're still installed but do not show up as a context menu.
Debugging the extension I get this error:
Error: Error: Attempt to postMessage on disconnected port
Normally that message is shown when Firefox can't find the host manifest
To fix that problem copy the old ~/.mozilla/native-messaging-hosts
dir to `~/snap/firefox/common/.mozilla/
Not sure why that is not done by default in the migration.
Restart Firefox and now at least the functionality shows up in the context menu.
Still not working though, now I get another not very helpful error:
Error: Error: An unexpected error occurred
My guess the path for the binary is sandboxed or so.
BTW I did find a open Firefox bug report and Launchpad
This is a major functionality setback for Ubuntu users, any solutions/workarounds yet?
I do not get the forced migration to snap: slower start and lost functionality.