Bug 1802103 - [remote] Disable location change rate limit. r=webdriver-reviewers,Sasha,jdescottes

Differential Revision: https://phabricator.services.mozilla.com/D162826
This commit is contained in:
Henrik Skupin 2022-11-24 17:09:51 +00:00
Родитель a78ecb23eb
Коммит 1ed700de36
2 изменённых файлов: 7 добавлений и 4 удалений

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

@ -178,6 +178,9 @@ const COMMON_PREFERENCES = new Map([
["dom.max_chrome_script_run_time", 0],
["dom.max_script_run_time", 0],
// Disable location change rate limitation
["dom.navigation.locationChangeRateLimit.count", 0],
// DOM Push
["dom.push.connection.enabled", false],

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

@ -18,14 +18,12 @@ import sys
import tempfile
import time
import traceback
from copy import deepcopy
import mozversion
from mozprofile import Profile
from mozrunner import Runner, FennecEmulatorRunner
import six
from mozprofile import Profile
from mozrunner import FennecEmulatorRunner, Runner
from six import reraise
from . import errors
@ -69,6 +67,8 @@ class GeckoInstance(object):
# No slow script dialogs
"dom.max_chrome_script_run_time": 0,
"dom.max_script_run_time": 0,
# Disable location change rate limitation
"dom.navigation.locationChangeRateLimit.count": 0,
# DOM Push
"dom.push.connection.enabled": False,
# Disable dialog abuse if alerts are triggered too quickly