I've never actually had the Cmd+Q issue with my browser because Chrome overrides the system Cmd+Q, popping up a message to hold it if you want to actually close the browser.
I just check with Firefox which he was complaining about, and while it doesn't do this, it at least by default prompts you to confirm you want to close multiple tabs which should hopefully prevent you from quitting out by accident.