SoftwareTesting:Tools:BrowserShutdown

From MozillaWiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
  • 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!