@@ -41,6 +41,8 @@ class GeckoInstance(object):
41
41
# and causing false-positive test failures. See bug 1176798, bug 1177018,
42
42
# bug 1210465.
43
43
"apz.content_response_timeout" : 60000 ,
44
+ # Don't pull Top Sites content from the network
45
+ "browser.topsites.contile.enabled" : False ,
44
46
# Defensively disable data reporting systems
45
47
"datareporting.healthreport.documentServerURI" : "http://%(server)s/dummy/healthreport/" ,
46
48
"datareporting.healthreport.logging.consoleEnabled" : False ,
@@ -52,6 +54,8 @@ class GeckoInstance(object):
52
54
"datareporting.policy.dataSubmissionPolicyBypassNotification" : True ,
53
55
# Automatically unload beforeunload alerts
54
56
"dom.disable_beforeunload" : True ,
57
+ # Enabling the support for File object creation in the content process.
58
+ "dom.file.createInChild" : True ,
55
59
# Disable the ProcessHangMonitor
56
60
"dom.ipc.reportProcessHangs" : False ,
57
61
# No slow script dialogs
@@ -83,6 +87,8 @@ class GeckoInstance(object):
83
87
"geo.provider.testing" : True ,
84
88
# Do not scan Wifi
85
89
"geo.wifi.scan" : False ,
90
+ # Ensure webrender is on, no need for environment variables
91
+ "gfx.webrender.all" : True ,
86
92
# Disable idle-daily notifications to avoid expensive operations
87
93
# that may cause unexpected test timeouts.
88
94
"idle.lastDailyNotification" : - 1 ,
@@ -112,10 +118,6 @@ class GeckoInstance(object):
112
118
"signon.rememberSignons" : False ,
113
119
# Prevent starting into safe mode after application crashes
114
120
"toolkit.startup.max_resumed_crashes" : - 1 ,
115
- # Enabling the support for File object creation in the content process.
116
- "dom.file.createInChild" : True ,
117
- # Don't pull Top Sites content from the network
118
- "browser.topsites.contile.enabled" : False ,
119
121
}
120
122
121
123
def __init__ (
@@ -132,7 +134,6 @@ def __init__(
132
134
workspace = None ,
133
135
verbose = 0 ,
134
136
headless = False ,
135
- enable_webrender = False ,
136
137
):
137
138
self .runner_class = Runner
138
139
self .app_args = app_args or []
@@ -152,7 +153,6 @@ def __init__(
152
153
self ._gecko_log = None
153
154
self .verbose = verbose
154
155
self .headless = headless
155
- self .enable_webrender = enable_webrender
156
156
157
157
# keep track of errors to decide whether instance is unresponsive
158
158
self .unresponsive_count = 0
@@ -331,12 +331,6 @@ def _get_runner_args(self):
331
331
env ["MOZ_HEADLESS" ] = "1"
332
332
env ["DISPLAY" ] = "77" # Set a fake display.
333
333
334
- if self .enable_webrender :
335
- env ["MOZ_WEBRENDER" ] = "1"
336
- env ["MOZ_ACCELERATED" ] = "1"
337
- else :
338
- env ["MOZ_WEBRENDER" ] = "0"
339
-
340
334
# environment variables needed for crashreporting
341
335
# https://developer.mozilla.org/docs/Environment_variables_affecting_crash_reporting
342
336
env .update (
@@ -483,10 +477,6 @@ def _get_runner_args(self):
483
477
}
484
478
485
479
env = {} if self .env is None else self .env .copy ()
486
- if self .enable_webrender :
487
- env ["MOZ_WEBRENDER" ] = "1"
488
- else :
489
- env ["MOZ_WEBRENDER" ] = "0"
490
480
491
481
runner_args = {
492
482
"app" : self .package_name ,
0 commit comments