SoftwareTesting:Tools:BrowserShutdown
From MozillaWiki
- create an html file with the following contents
<body> <script src="quit.js"></script> Say goodnight, Gracie <script> goQuitApplication(); </script>
- Copy quit.js from here
- add the following lines to prefs.js (or user.js)
user_pref("capability.principal.codebase.p0.granted", "UniversalPreferencesWrite UniversalXPConnect UniversalPreferencesRead"); user_pref("capability.principal.codebase.p0.id", "file:///full_path_to_html_file.html"); user_pref("capability.principal.codebase.p0.subjectName", "");
- load the page, and the browser will exit. even on a mac!