The code that's throwing is from Canonical's patch: https://github.com/canonical/firefox-snap/blob/stable/patches/native-messaging-portal.patch
Right here: https://github.com/canonical/firefox-snap/blob/7f87c2af624891313906abe7fdccfda1ad76a0f7/patches/native-messaging-portal.patch#L256
The code that's throwing is from Canonical's patch: https:/ /github. com/canonical/ firefox- snap/blob/ stable/ patches/ native- messaging- portal. patch
Right here: https:/ /github. com/canonical/ firefox- snap/blob/ 7f87c2af6248913 13906abe7fdccfd a1ad76a0f7/ patches/ native- messaging- portal. patch#L256