I'm using Ubuntu 22.04 and I have the issue of geolocation not working in Firefox snap (currently 119.0.1). Here are the steps to reproduce the issue:
Enable location services in Ubuntu Settings → Privacy → Location Services.
Check in Firefox Settings → Privacy and security → Location → Settings... permissions that the flag Block new requests asking to access your location is not enabled.
Navigate in Firefox to: https://mylocation.org/
Click Browser Geolocation.
Click Start Test. A popup will ask you to allow the request.
Expected behavior: you get your latitude and longitude coordinates.
Actual behavior: latitude and longitude show Failed.
Please note that the Chromium snap can get the location correctly on the same site.
Can someone please confirm or deny the same behavior in the Firefox snap? Is there any workaround to get it working in Firefox snap? I love snaps so I would prefer a solution with the snap version of Firefox.