gecko-dev/remote/doc/Building.md
Andreas Tolfsen c0c59383f9 bug 1544393: remote: ship remote agent in Firefox Nightly r=remote-protocol-reviewers,whimboo,maja_zf
Now that the security review in bug 1542229 and the follow-up work
that came out of it is complete, we should go ahead and flip the
remote.enabled preference.

This patch causes the remote agent to be available to users on the
Firefox Nightly release channel.  This meansusing --remote-debugger
will no longer cause a fatal error

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

--HG--
extra : moz-landing-system : lando
2019-12-02 15:39:51 +00:00

1.6 KiB
Raw Blame History

Building

The remote agent is included in the default Firefox build, but only ships on the Firefox Nightly release channel:

% ./mach run --remote-debugger

The source code can be found under remote/ in central.

There are two build modes to choose from:

Full build mode

The remote agent supports only Firefox, and is included when you build in the usual way:

% ./mach build

When you make changes to XPCOM component files you need to rebuild in order for the changes to take effect. The most efficient way to do this, provided you havent touched any compiled code (C++ or Rust):

% ./mach build faster

Component files include the likes of components.conf, RemoteAgent.manifest, moz.build files, and jar.mn. All the JS modules (files ending with .jsm) are symlinked into the build and can be changed without rebuilding. The remote agents startup code found under remote/startup/ is written in Rust and requires rebuilds when changed.

You may also opt out of building the remote agent entirely by setting the --disable-cdp build flag in your mozconfig:

ac_add_options --disable-cdp

Artifact mode

You may also use artifact builds when working on the remote agent. This fast build mode downloads pre-built components from the Mozilla build servers, rendering local compilation unnecessary. To use them, place this in your mozconfig:

ac_add_options --enable-artifact-builds