Bug 1542244: Disable Privacy and tracking protection features during testing. r=webdriver-reviewers,ato,whimboo

When privacy and tracking protection is enabled there is a call home that
can break tests. This uses the relavant prefs to disable the features.

Differential Revision: https://phabricator.services.mozilla.com/D29644

--HG--
extra : moz-landing-system : lando
This commit is contained in:
David Burns 2019-06-05 08:11:38 +00:00
Родитель d708762a60
Коммит c7072d92cf
2 изменённых файлов: 12 добавлений и 0 удалений

Просмотреть файл

@ -59,6 +59,9 @@ class GeckoInstance(object):
"dom.max_chrome_script_run_time": 0,
"dom.max_script_run_time": 0,
# DOM Push
"dom.push.connection.enabled": False,
# Only load extensions from the application and user profile
# AddonManager.SCOPE_PROFILE + AddonManager.SCOPE_APPLICATION
"extensions.autoDisableScopes": 0,
@ -116,6 +119,9 @@ class GeckoInstance(object):
# Make sure SNTP requests don't hit the network
"network.sntp.pools": "%(server)s",
# Privacy and Tracking Protection
"privacy.trackingprotection.enabled": False,
# Don't do network connections for mitm priming
"security.certerrors.mitm.priming.enabled": False,

Просмотреть файл

@ -185,6 +185,9 @@ const RECOMMENDED_PREFS = new Map([
["dom.max_chrome_script_run_time", 0],
["dom.max_script_run_time", 0],
// DOM Push
["dom.push.connection.enabled", false],
// Only load extensions from the application and user profile
// AddonManager.SCOPE_PROFILE + AddonManager.SCOPE_APPLICATION
//
@ -241,6 +244,9 @@ const RECOMMENDED_PREFS = new Map([
// Make sure SNTP requests do not hit the network
["network.sntp.pools", "%(server)s"],
// Privacy and Tracking Protection
["privacy.trackingprotection.enabled", false],
// Don't do network connections for mitm priming
["security.certerrors.mitm.priming.enabled", false],