Type "about:config" in your browser and then search for "Quit"
Set these values to true
browser.showQuitWarning
browser.warnOnQuit