Reinstall of firefox deletes profile

I tried to reinstall firefox after the latest update broke it, and snap deleted all my data. Only because of a single askubuntu post was I able to find the archived backup that snap makes, and restore my profile. It took me hours to figure out, and you can see what I had to do in this reddit post:

https://old.reddit.com/r/firefox/comments/1ddksu6/ubuntu_snap_just_deleted_my_profile_after_a/

This mozilla support article claims that uninstalling doesn’t remove user data, and while technically true in the case of Snap, an average user might spend hours trying to get their profile back, or simply give up:

https://support.mozilla.org/en-US/kb/uninstall-firefox-from-your-computer

I don’t know what the solution is, but this was an awful experience, and I don’t want anyone else to go through that