It's implied in the other answers, but if the whole OS freezes (or BSOD) it can't be caused by Firefox or any other client application. Either it's hardware (including temperature, check
HWMonitor nevertheless), or drivers (some programs such as AV use drivers too), or the OS is damaged (including virus).
If the problem appeared while using Firefox, it may be the graphic card overheating because of Flash?