Bug 1018400 - Disable safebrowsing during reftests. r=ted, a=test-only
authorNathan Froyd <froydnj@mozilla.com>
Fri, 30 May 2014 16:21:47 -0400
changeset 287702 eada024fd5e0d8ae713ec5c3d2ea36f07dce462c
parent 287701 4f05af9f1d85994991b96a29c6d832fbada1a60b
child 287703 c959817f5ab8fa4e795c36dbe3560ea3c7e5e343
push id218
push userryanvm@gmail.com
push dateWed, 16 Dec 2015 22:58:33 +0000
reviewersted, test-only
bugs1018400
milestone31.0
Bug 1018400 - Disable safebrowsing during reftests. r=ted, a=test-only
js/src/tests/user.js
layout/tools/reftest/runreftest.py
--- a/js/src/tests/user.js
+++ b/js/src/tests/user.js
@@ -18,8 +18,10 @@ user_pref("browser.cache.check_doc_frequ
 user_pref("extensions.checkCompatibility", false);
 user_pref("extensions.checkUpdateSecurity", false);
 user_pref("browser.EULA.override", true);
 user_pref("javascript.options.strict", false);
 user_pref("javascript.options.werror", false);
 user_pref("toolkit.startup.max_resumed_crashes", -1);
 user_pref("security.turn_off_all_security_so_that_viruses_can_take_over_this_computer", true);
 user_pref("toolkit.telemetry.enabled", false);
+user_pref("browser.safebrowsing.enabled", false);
+user_pref("browser.safebrowsing.malware.enabled", false);
--- a/layout/tools/reftest/runreftest.py
+++ b/layout/tools/reftest/runreftest.py
@@ -163,16 +163,19 @@ class RefTest(object):
       prefs['reftest.filter'] = options.filter
     if options.shuffle:
       prefs['reftest.shuffle'] = True
     prefs['reftest.focusFilterMode'] = options.focusFilterMode
 
     # Ensure that telemetry is disabled, so we don't connect to the telemetry
     # server in the middle of the tests.
     prefs['toolkit.telemetry.enabled'] = False
+    # Likewise for safebrowsing.
+    prefs['browser.safebrowsing.enabled'] = False
+    prefs['browser.safebrowsing.malware.enabled'] = False
 
     if options.e10s:
       prefs['browser.tabs.remote.autostart'] = True
 
     for v in options.extraPrefs:
       thispref = v.split('=')
       if len(thispref) < 2:
         print "Error: syntax error in --setpref=" + v