зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1101124
- Check for a pref to always stop slow scripts r=bz
This commit is contained in:
Родитель
6a8fa342ed
Коммит
ee65ddc5cb
|
@ -11071,6 +11071,10 @@ nsGlobalWindow::ShowSlowScriptDialog()
|
||||||
nsresult rv;
|
nsresult rv;
|
||||||
AutoJSContext cx;
|
AutoJSContext cx;
|
||||||
|
|
||||||
|
if (Preferences::GetBool("dom.always_stop_slow_scripts")) {
|
||||||
|
return KillSlowScript;
|
||||||
|
}
|
||||||
|
|
||||||
// If it isn't safe to run script, then it isn't safe to bring up the prompt
|
// If it isn't safe to run script, then it isn't safe to bring up the prompt
|
||||||
// (since that spins the event loop). In that (rare) case, we just kill the
|
// (since that spins the event loop). In that (rare) case, we just kill the
|
||||||
// script and report a warning.
|
// script and report a warning.
|
||||||
|
|
Загрузка…
Ссылка в новой задаче