I finally solved the problem by resetting Windows 10. Now I didn't do a reset just for the Firefox problem. I started noticing more glitches while running the system. I decided to just do a complete reset and by golly, the glitches disappeared and as a by-product I got Firefox to set as my prime browser.
Thanks for the replies .