A majority of recent security flaws in windows were found in internet explorer. Firefox does not use ActiveX, and therefore is much more secure.
Sample Security Warning
Additionaly, Firefox implements a whitelist of sites allowed to install software