Bug 1022785 - Disable android snippets for reftests/crashtests/jsreftests. r=jmaher, a=test-only
authorNathan Froyd <froydnj@mozilla.com>
Mon, 09 Jun 2014 13:37:21 -0400
changeset 171524 e04f006f6c61019414833f82d15eedef6330d916
parent 171523 728a5643db0f1df9ca5567494a352fd170f5ed6b
child 171525 2d69e83fc4cf1722bc790a38a479643ce62598ad
push id527
push userryanvm@gmail.com
push dateFri, 13 Jun 2014 15:47:48 +0000
reviewersjmaher, test-only
bugs1022785
milestone28.0
Bug 1022785 - Disable android snippets for reftests/crashtests/jsreftests. r=jmaher, 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
@@ -20,8 +20,10 @@ user_pref("extensions.checkUpdateSecurit
 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);
+user_pref("browser.snippets.enabled", false);
+user_pref("browser.snippets.syncPromo.enabled", false);
--- a/layout/tools/reftest/runreftest.py
+++ b/layout/tools/reftest/runreftest.py
@@ -75,16 +75,19 @@ class RefTest(object):
     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
+    # And for snippets.
+    prefs['browser.snippets.enabled'] = False
+    prefs['browser.snippets.syncPromo.enabled'] = False
 
     for v in options.extraPrefs:
       thispref = v.split('=')
       if len(thispref) < 2:
         print "Error: syntax error in --setpref=" + v
         sys.exit(1)
       prefs[thispref[0]] = mozprofile.Preferences.cast(thispref[1].strip())