This has been happening to me lately. Randomly and often, firefox, which is the browser I'm using, crashes or commits an error.
have you installed any extensions recently?
Disable all of your extensions and themes, then add them one by one and wait for the crash
Go to where you have firefox installed in your program files in Windows, and click the shortcut to run FireFox in safe mode.