Confirmed users
561
edits
(→Code) |
|||
Line 38: | Line 38: | ||
=== Code === | === Code === | ||
The Marionette code | The Marionette code is hosted [http://hg.mozilla.org/users/mdas_mozilla.com/marionette-pq here]. | ||
==== Marionette and Fennec/Firefox ==== | |||
This is a mercurial patch queue which applies on top of either the | |||
[http://hg.mozilla.org/users/dcamp_campd.org/remote-debug remote-debug branch] of mozilla-central or mozilla-central itself. I would recommend running it on top of mozilla-central as the remote-debug branch is not always up to date with upstream. In order to apply the patches, first create the patch queue and get the code: | |||
hg qinit | |||
cd .hg/patches | |||
hg clone http://hg.mozilla.org/users/mdas_mozilla.com/marionette-pq . | |||
To apply marionette to mozilla-central, you have to change your series file to the series-add-rd file: | |||
cp series-add-rd series | |||
cd ../../ | |||
hg qpush -a | |||
This will import the minimal set of remote-debugger dependencies into your m-c tree and will apply marionette patches to it. | |||
To apply marionette to remote-debug branch: | |||
cd ../../ | |||
hg qpush -a | |||
By the end of the quarter, both remote-debugger and marionette should land on m-c so we won't need this patch queue for long. | |||
These patches bake marionette into startup of fennec/fireofx, so all you need to do is rebuild and then start up the newly built binary. For both means, the server should be running on port 2828 by default. | |||
==== Marionette and B2G ==== | |||
To use Marionette with B2G, pull this fork of B2G https://github.com/jonallengriffin/B2G. This tree is kept up to date with upstream often, and will be merged into the [https://github.com/andreasgal/B2G standard B2G repo] (very) soon. | |||
Marionette is enabled via a pref in gecko/b2g/app/b2g.js. Enable it using the boolean pref "marionette.server.enabled", and set the port it listens to via "marionette.server.port" | |||
==== Running the Tests ==== | ==== Running the Tests ==== |