I had this problem a few months ago. I did apt purge firefox, then apt install firefox and that fixed it for me. When I installed it I installed only firefox (not the 2 additional packages that were purged along with firefox) and that fixed it. There may have been a mismatch in the versions of the 2 extra packages that I did not install.