Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 599946 - www-client/firefox: enable marionette support
Summary: www-client/firefox: enable marionette support
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-16 08:25 UTC by Hans de Graaff
Modified: 2016-12-24 08:26 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hans de Graaff gentoo-dev Security 2016-11-16 08:25:22 UTC
As far as I can tell our current www-client/firefox ebuild does not enable marionette support. Could this be enabled, either by default, or controlled via a USE flag? This support enables e.g. selenium-webdriver to drive firefox for unattended testing in a CI pipeline.

More information on Marionette in general: https://developer.mozilla.org/en-US/docs/Mozilla/QA/Marionette

Information on enabling this in builds: https://developer.mozilla.org/en-US/docs/Mozilla/QA/Marionette/Builds

geckodriver may be useful for testing. Upstream is at https://github.com/mozilla/geckodriver and I have an ebuild in my overlay: www-apps/geckodriver-bin::graaff

I've tried this patch to see if that enabled it, but it looks like this does not work and I don't know enough about the firefox build system to debug this further.

--- a/www-client/firefox/firefox-49.0.ebuild
+++ b/www-client/firefox/firefox-49.0.ebuild
@@ -202,6 +202,7 @@ src_configure() {
 
        echo "mk_add_options MOZ_OBJDIR=${BUILD_OBJ_DIR}" >> "${S}"/.mozconfig
        echo "mk_add_options XARGS=/usr/bin/xargs" >> "${S}"/.mozconfig
+       echo "mk_add_options ENABLE_MARIONETTE=1" >> "${S}"/.mozconfig || die
 
        # Finalize and report settings
        mozconfig_final
Comment 1 Hans de Graaff gentoo-dev Security 2016-12-24 08:26:50 UTC
It looks like this request is not valid because Marionette is available at least in Firefox 50.1.0. Most likely I did not detect this earlier due to issues with my testing setup and due to the fact that the --marionette command line option is not shown in the --help output even when available. In any case I've been able to use Marionette with Firefox 50.1.0.