Please note, this is a STATIC archive of website developer.mozilla.org from November 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

appShellService

Quitting Mozilla:

var Cc = Components.classes;
var Ci = Components.interfaces;
shell = Cc["@mozilla.org/appshell/appShellService;1"];
shell = shell.getService(Ci.nsIAppShellService);
shell.quit(3); // eForceQuit

Bam! There goes Mozilla.

Then again, there's a much easier way; One of the xpcshell extensions is a quit function:

quit(3)

Document Tags and Contributors

 Last updated by: Sheppy,