gecko-dev/remote
Andreas Tolfsen 8b58648e51 bug 1606612: remote: pretty-print WebSocket JSON payloads when verbose logging r=remote-protocol-reviewers,whimboo
When remote.log.level is Log.Level.Info or above, verbose logging
is enabled and we pretty-print JSON payloads in requests to the
HTTPD in JSONHandler.

This patch matches the behaviour of the JSONHandler logging, where
JSON payloads are logged to stdout with special formatting before
being transmitted across WebSocket connections.

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

--HG--
extra : moz-landing-system : lando
2020-01-06 09:37:02 +00:00
..
doc bug 1606834: remote: document fdescribe(), fit(), and Mocha flags r=remote-protocol-reviewers,whimboo 2020-01-03 16:11:19 +00:00
domains Bug 1600055 - [remote] Switch from using "outerWindowID" to "browsingContext.id". r=remote-protocol-reviewers,ato 2020-01-06 12:55:35 +00:00
server Bug 1563685 - Rename WebSocketDebuggerTransport class to match its JSM file name. r=remote-protocol-reviewers,jdescottes,ato 2019-07-09 09:36:16 +00:00
sessions bug 1565164: remote: rename Domains DomainCache r=remote-protocol-reviewers,whimboo 2020-01-06 09:32:11 +00:00
startup bug 1590827: remote, browser: request remote agent startup; r=florian,remote-protocol-reviewers,maja_zf 2019-11-26 19:56:44 +00:00
targets bug 1565164: remote: rename Targets TargetList r=remote-protocol-reviewers,whimboo 2020-01-06 09:32:09 +00:00
test Bug 1605650 - [remote] Temporarily skip test browser_getCookies.js for ccov tests on Windows 10. r=remote-protocol-reviewers,ato 2020-01-06 09:52:30 +00:00
.gitignore Bug 1595528 - [remote] Add local Chromium folder to ignore list. r=remote-protocol-reviewers,maja_zf 2019-11-12 21:19:11 +00:00
Cargo.toml bug 1598286: remote: upgrade to http 0.2 r=remote-protocol-reviewers,whimboo 2020-01-06 14:24:17 +00:00
Connection.jsm bug 1606612: remote: pretty-print WebSocket JSON payloads when verbose logging r=remote-protocol-reviewers,whimboo 2020-01-06 09:37:02 +00:00
Error.jsm Bug 1561435 - Format remote/, a=automatic-formatting 2019-07-05 10:56:48 +02:00
JSONHandler.jsm bug 1606612: remote: stop sanitizing JSON payloads from the HTTPD r=remote-protocol-reviewers,whimboo 2020-01-07 16:22:49 +00:00
Log.jsm Bug 1561435 - Format remote/, a=automatic-formatting 2019-07-05 10:56:48 +02:00
Protocol.jsm Backed out 2 changesets (bug 1606612) for 'remote' failures at browser_scriptToEvaluateOnNewDocument.js. CLOSED TREE 2020-01-02 18:19:40 +02:00
README bug 1544393: remote: ship remote agent in Firefox Nightly r=remote-protocol-reviewers,whimboo,maja_zf 2019-12-02 15:39:51 +00:00
RecommendedPreferences.jsm Bug 1561435 - Format remote/, a=automatic-formatting 2019-07-05 10:56:48 +02:00
RemoteAgent.jsm bug 1565164: remote: rename Targets TargetList r=remote-protocol-reviewers,whimboo 2020-01-06 09:32:09 +00:00
StreamRegistry.jsm Bug 1600053 - [remote] Add registry for managing references to streams. r=remote-protocol-reviewers,maja_zf 2019-12-16 16:17:47 +00:00
Sync.jsm Bug 1561435 - Format remote/, a=automatic-formatting 2019-07-05 10:56:48 +02:00
TabManager.jsm Bug 1591922 - [remote] Page.bringToFront has to wait for activate and focus events. r=remote-protocol-reviewers,ato 2019-11-07 14:47:53 +00:00
WindowManager.jsm Bug 1591922 - [remote] Page.bringToFront has to wait for activate and focus events. r=remote-protocol-reviewers,ato 2019-11-07 14:47:53 +00:00
components.conf bug 1543115: remote, toolkit: bootstrap from Rust; r=remote-protocol-reviewers,maja_zf 2019-11-22 08:03:21 +00:00
error.rs bug 1590828: remote: take appropriate action on errors during startup r=remote-protocol-reviewers,maja_zf,whimboo 2019-12-04 18:26:38 +00:00
jar.mn bug 1565164: remote: rename Domains DomainCache r=remote-protocol-reviewers,whimboo 2020-01-06 09:32:11 +00:00
lib.rs bug 1543115: remote, toolkit: bootstrap from Rust; r=remote-protocol-reviewers,maja_zf 2019-11-22 08:03:21 +00:00
mach_commands.py Bug 1590467 - Use new testing options in puppeteer-test mach command; r=remote-protocol-reviewers,ato 2019-11-08 11:58:08 +00:00
moz.build bug 1543115: remote, toolkit: bootstrap from Rust; r=remote-protocol-reviewers,maja_zf 2019-11-22 08:03:21 +00:00
nsIRemoteAgent.idl bug 1590828: remote: return NS exceptions from nsIRemoteAgent r=remote-protocol-reviewers,whimboo,maja_zf 2019-12-04 18:26:36 +00:00
remote_agent.rs bug 1590828: remote: take appropriate action on errors during startup r=remote-protocol-reviewers,maja_zf,whimboo 2019-12-04 18:26:38 +00:00

README

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