To Enable ‘Save and Quit’ feature in Firefox 4,
just type
about:config
in the address bar and open it.
Enter
browser.showQuitWarning
in the Filter tab. Double-click the entry named browser.showQuitWarning so that its value changes to ‘true’. That’s it!
Now you’ll be presented with ‘Quit Firefox’ dialog box on closing Firefox 4.