Useful prefs

From MozillaZine Knowledge Base
Revision as of 15:56, 16 May 2005 by LouCypher (talk | contribs) (fixed layout)
Jump to navigationJump to search

These prefs may be useful for people writing Mozilla extensions. They should be added to user.js or about:config.

user_pref("nglayout.debug.disable_xul_cache", true);
 user_pref("browser.dom.window.dump.enabled", true);
  • Show chrome errors in the JavaScript console
user_pref("javascript.options.showInConsole", true);
  • Enable strict JavaScript warnings. (Note, that since most people have it turned off, you will see dozens of warnings in their code. Use with caution).
user_pref("javascript.options.strict", true);