Bug 997820 - Properly set the reftest pref on esr24. a=bustage
authorRyan VanderMeulen <ryanvm@gmail.com>
Tue, 29 Apr 2014 10:50:52 -0400
changeset 148936 2d09a4707dd3489172e5ad313cca8f9470ccda92
parent 148935 1ac04a08b2f6145f2c9c733aef3b782ce202f029
child 148937 be03a3bffb62bf99d23b9f19c33522dc11f4b5c9
push id233
push userryanvm@gmail.com
push dateTue, 29 Apr 2014 14:51:02 +0000
reviewersbustage
bugs997820
milestone24.5.0
Bug 997820 - Properly set the reftest pref on esr24. a=bustage
layout/tools/reftest/runreftest.py
--- a/layout/tools/reftest/runreftest.py
+++ b/layout/tools/reftest/runreftest.py
@@ -68,17 +68,17 @@ class RefTest(object):
     if options.ignoreWindowSize != False:
       prefsFile.write('user_pref("reftest.ignoreWindowSize", true);\n')
     if options.filter != None:
       prefsFile.write('user_pref("reftest.filter", %s);\n' % self.makeJSString(options.filter))
     prefsFile.write('user_pref("reftest.focusFilterMode", %s);\n' % self.makeJSString(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
+    prefsFile.write('user_pref("toolkit.telemetry.enabled", false);\n')
 
     for v in options.extraPrefs:
       thispref = v.split("=")
       if len(thispref) < 2:
         print "Error: syntax error in --setpref=" + v
         sys.exit(1)
       part = 'user_pref("%s", %s);\n' % (thispref[0], thispref[1])
       prefsFile.write(part)