mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-21 01:05:45 +00:00
b7a5c8548a
Adds browser-chrome tests for the main entry point of the remote agent, nsIRemoteAgent. add_agent_task() wraps add_plain_task() (which again wraps the original add_task()) so we can ensure that the agent isn't listening before a test runs, and that any modified state such as preferences is reset afterwards. The tests rely heavily on the assumption that nsIRemoteAgent.close() behaves as a no-op when the server is not listening. This patch is a follow-up to bug 1590828. Differential Revision: https://phabricator.services.mozilla.com/D55456 --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 | ||
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. It is available in Firefox Nightly and is started this way: % ./mach run --remote-debugger