This is probably because you are trying to run mozilla-firefox as root, and that may not be the account X started with. Try switching out of root and then
And then try to run Firefox as root again. You could also try switching out of root and then
$ sudo <cmd to start firefox>
That way, you won't have to type "xhost +" every time you start X.