Useful prefs: Difference between revisions
From MozillaZine Knowledge Base
Jump to navigationJump to search
m (fixed layout) |
m (linkified) |
||
Line 7: | Line 7: | ||
user_pref("browser.dom.window.dump.enabled", true); | user_pref("browser.dom.window.dump.enabled", true); | ||
*Show chrome errors in the JavaScript | *Show chrome errors in the [[JavaScript Console]] | ||
user_pref("javascript.options.showInConsole", true); | 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). | *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); | user_pref("javascript.options.strict", true); |
Revision as of 15:58, 16 May 2005
These prefs may be useful for people writing Mozilla extensions. They should be added to user.js or about:config.
- Disable XUL cache (so you don't have to restart everytime you change a XUL file)
user_pref("nglayout.debug.disable_xul_cache", true);
- Enable dump() output (read more)
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);