From 9b7ba0c8505f6bd8b22db047e41cbf299a7cda60 Mon Sep 17 00:00:00 2001 From: tn Date: Wed, 6 May 2009 01:11:19 +0200 Subject: [PATCH] Bug 490951 - Fix timeout for scripts when running mochitests; r=ted.mielczarek --- build/automation.py.in | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/build/automation.py.in b/build/automation.py.in index c36771a13fab..b41cc521c54a 100644 --- a/build/automation.py.in +++ b/build/automation.py.in @@ -233,6 +233,7 @@ user_pref("browser.dom.window.dump.enabled", true); user_pref("dom.allow_scripts_to_close_windows", true); user_pref("dom.disable_open_during_load", false); user_pref("dom.max_script_run_time", 0); // no slow script dialogs +user_pref("dom.max_chrome_script_run_time", 0); user_pref("signed.applets.codebase_principal_support", true); user_pref("security.warn_submit_insecure", false); user_pref("browser.shell.checkDefaultBrowser", false); @@ -256,13 +257,6 @@ user_pref("camino.warn_when_closing", false); // Camino-only, harmless to others prefs.append(part) - # Increase the max script run time 10-fold for debug builds - if (IS_DEBUG_BUILD): - prefs.append("""\ -user_pref("dom.max_script_run_time", 100); -user_pref("dom.max_chrome_script_run_time", 200); -""") - locations = readLocations() # Grant God-power to all the privileged servers on which tests run.