As you mentioned that you haven’t installed any driver, I assumed you might not have followed the wiki.
Good that things worked out for you but why would firefox cause this error?
You might need the driver from Lexmark Support (Driver files for CUPS-based systems (Linux Universal Print Driver)).
Type your model ms510dn in the search field.