mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 05:41:12 +00:00
Bug 1101539 - Make Marionette's GeckoInstance actually support passing a nonstandard port. r=jgriffin
This commit is contained in:
parent
88b2e61eb5
commit
69019f592c
@ -16,7 +16,6 @@ from mozrunner import Runner
|
||||
class GeckoInstance(object):
|
||||
|
||||
required_prefs = {"marionette.defaultPrefs.enabled": True,
|
||||
"marionette.defaultPrefs.port": 2828,
|
||||
"marionette.logging": True,
|
||||
"startup.homepage_welcome_url": "about:blank",
|
||||
"browser.shell.checkDefaultBrowser": False,
|
||||
@ -45,6 +44,7 @@ class GeckoInstance(object):
|
||||
|
||||
def start(self):
|
||||
profile_args = {"preferences": deepcopy(self.required_prefs)}
|
||||
profile_args["preferences"]["marionette.defaultPrefs.port"] = self.marionette_port
|
||||
if self.prefs:
|
||||
profile_args["preferences"].update(self.prefs)
|
||||
if not self.profile_path:
|
||||
|
Loading…
Reference in New Issue
Block a user