mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-23 02:05:42 +00:00
d79e42a0ef
This bootstraps the remote agent from Rust so that we have access to write to stderr using the eprintln!() macro. There is a future intention to expand Rust usage in the remote agent by delegating CDP and WebDriver Bi-Di protocol schema validation to serde. The Rust port is faithful to the JS version in terms of functionality, and in some places improves on the original design by enforcing a strict division between flag handling code on one hand, and the remote agent server on the other. Differential Revision: https://phabricator.services.mozilla.com/D50289 --HG-- extra : moz-landing-system : lando |
||
---|---|---|
.. | ||
doc | ||
domains | ||
server | ||
sessions | ||
startup | ||
targets | ||
test | ||
.gitignore | ||
Cargo.toml | ||
components.conf | ||
Connection.jsm | ||
Error.jsm | ||
error.rs | ||
jar.mn | ||
JSONHandler.jsm | ||
lib.rs | ||
Log.jsm | ||
mach_commands.py | ||
moz.build | ||
nsIRemoteAgent.idl | ||
Observer.jsm | ||
Protocol.jsm | ||
README | ||
RecommendedPreferences.jsm | ||
remote_agent.rs | ||
RemoteAgent.jsm | ||
Sync.jsm | ||
TabManager.jsm | ||
WindowManager.jsm |
The Firefox remote agent is a low-level debugging interface based on the CDP protocol. With it, you can inspect the state and control execution of documents running in web content, instrument Gecko in interesting ways, simulate user interaction for automation purposes, and debug JavaScript execution. This component provides an experimental and partial implementation of a remote devtools interface using the CDP protocol and transport layer. See https://firefox-source-docs.mozilla.org/remote/ for documentation. The remote agent is disabled by default, but can be enabled by setting a preference before running it: % ./mach run --setpref "remote.enabled=true" --remote-debugger