1. Open your Firefox and type about:config in Firefox address bar and of course I'll be careful, I promise!
2. Go to the filter box and type quitwarning and it'll show something like this
browser.showQuitWarning
3. Right click on this item and choose toggle. Set the value from false to true.
That's all guys. Try it now :)