mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-21 01:05:45 +00:00
26201b29a2
We return with this rather omnious message when we are missing the implementation of a CDP method: Error: Protocol error (Target.createBrowserContext): TypeError: inst[command] is not a function: This patch improves the error message so that debugging is not necessary to find out which domain or command is missing. Ideally Session.jsm and ContentProcessSession.jsm would share the same execute() function (there's really not reason they don't), but that involves more work. Differential Revision: https://phabricator.services.mozilla.com/D32069 --HG-- extra : moz-landing-system : lando |
||
---|---|---|
.. | ||
doc | ||
domains | ||
pref | ||
server | ||
sessions | ||
targets | ||
test | ||
command-line-handler.js | ||
Connection.jsm | ||
Error.jsm | ||
jar.mn | ||
JSONHandler.jsm | ||
Log.jsm | ||
moz.build | ||
Observer.jsm | ||
Protocol.jsm | ||
README | ||
RecommendedPreferences.jsm | ||
RemoteAgent.jsm | ||
RemoteAgent.manifest | ||
Sync.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