Dom.max script run timeFrom MozillaZine Knowledge Base
[edit] Background“[JavaScript] that executes for whole seconds is probably doing something wrong...” says Brendan Eich, creator of JavaScript. When a script is executing, Mozilla's UI will be unresponsive until the script’s thread ends. Correspondingly, Mozilla will alert you when a script is taking a long time to run and let you stop the script. This preference lets you define what “a long time” is. [edit] Possible values and their effectsThe value is a positive integer, determining the number of seconds of execution. 0 and negative values are considered "forever." (Default value is 5; 10 in nightly builds after 2006-07-27) [edit] Previous effectsIn builds prior to 2005-10-11, values less than 0 were assumed to be the default (then, 5). In builds prior to 2006-07-27 (e.g., Firefox 1.5), this preference affected scripts running in content and chrome; the limit on scripts running in chrome is now determined by dom.max_chrome_script_run_time. [edit] Caveats
[edit] Recommended settingsIf you’re encountering the “A script on this page is causing Mozilla to run slowly” dialog often and you’d like to disable it, setting this preference to 0 will allow the script to run for as long as it needs. A large number may be more appropriate, though, to avoid locking the entire UI forever as the script executes. [edit] First checked in[edit] Has an effect in
[edit] Related bugs
[edit] Related preferences |
|