diff --git a/product/ERP5Type/tests/runFunctionalTest.py b/product/ERP5Type/tests/runFunctionalTest.py
index c423a4f813cc5b9f5b034aa8d4c316415fdab184..313d24e381088216263e1776349778a34944aa14 100755
--- a/product/ERP5Type/tests/runFunctionalTest.py
+++ b/product/ERP5Type/tests/runFunctionalTest.py
@@ -138,9 +138,42 @@ def runXvfb():
 def prepareFirefox():
   os.system("rm -rf %s" % profile_dir)
   os.mkdir(profile_dir)
-  pref = file(os.path.join(os.path.dirname(__file__), 'prefs.js')).read()
+  prefs_js = """
+// Don't ask if we want to switch default browsers
+user_pref("browser.shell.checkDefaultBrowser", false);
+
+// Disable pop-up blocking
+user_pref("browser.allowpopups", true);
+user_pref("dom.disable_open_during_load", false);
+
+// Configure us as the local proxy
+//user_pref("network.proxy.type", 2);
+
+// Disable security warnings
+user_pref("security.warn_submit_insecure", false);
+user_pref("security.warn_submit_insecure.show_once", false);
+user_pref("security.warn_entering_secure", false);
+user_pref("security.warn_entering_secure.show_once", false);
+user_pref("security.warn_entering_weak", false);
+user_pref("security.warn_entering_weak.show_once", false);
+user_pref("security.warn_leaving_secure", false);
+user_pref("security.warn_leaving_secure.show_once", false);
+user_pref("security.warn_viewing_mixed", false);
+user_pref("security.warn_viewing_mixed.show_once", false);
+
+// Disable "do you want to remember this password?"
+user_pref("signon.rememberSignons", false);
+
+// this is required to upload files
+user_pref("capability.principal.codebase.p1.id", %s);
+user_pref("capability.principal.codebase.p1.subjectName", "");
+user_pref("signed.applets.codebase_principal_support", true);""" % \
+    '%s:%s' % (host, port)
+  
+#  pref = file(os.path.join(os.path.dirname(__file__), 'prefs.js')).read()
+ 
   pref_file = open(os.path.join(profile_dir, 'prefs.js'), 'w')
-  pref_file.write(pref)
+  pref_file.write(prefs_js)
   pref_file.close()
 
 def runFirefox():