I’m developing a firefox extension and i want to be able to close firefox window itself (without any confirm). For example, I want to close firefox window if a specific URL has been loaded. Open/close tab is easy with gBrowser, what about closing firefox window?
Thank you
To quit Firefox
To restart Firefox
Additional Useful Flags
eConsiderQuit : Attempt to quit if all windows are closed.
eAttemptQuit : Try to close all windows, then quit if successful.
eForceQuit : Force all windows to close, then quit.
eRestart : Restart the application after quitting. The application will be restarted with the same profile and an empty command line.