Had similar problems before, so I guessed it was some snap bullshit. This page seemed to confirm it https://support.mozilla.org/en-US/questions/1290489
Followed the instructions here https://www.omgubuntu.co.uk/2022/04/how-to-install-firefox-d... , and then it worked as normal.