SoftwareTesting:Tools:BrowserShutdown: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
No edit summary
 
No edit summary
 
Line 16: Line 16:
</pre>
</pre>
* load the page, and the browser will exit.  even on a mac!
* load the page, and the browser will exit.  even on a mac!
[[Category:SoftwareTesting]]

Latest revision as of 21:25, 16 September 2006

  • 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!