gecko-dev/remote
Andreas Tolfsen c4d142e772 bug 1563533: remote: add toDataURL document inlining helper; r=remote-protocol-reviewers,jdescottes
Introduces helper function, toDataURL(), that takes a document
extract and produces a data URL with the necessary properties for
Gecko to recognise it as an HTML document with the correct media type.

This has the benefit that HTML fragments and tags such as < and > are
encoded correctly, which is an obvious safety-win, and subsequently
that documents can be created on-the-fly with minimal code.

It will be possible to extend this function for other document types,
such as XHTML, XML, and even binary formats, as needed in the future.

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

--HG--
extra : moz-landing-system : lando
2019-08-02 16:26:01 +00:00
..
doc bug 1570290: remote: fix duplicate implicit target in docs; r=me a=doc 2019-07-31 13:50:42 +01:00
domains Bug 1545724 - Add support for javascriptDialog APIs in Page domain r=remote-protocol-reviewers,whimboo,ochameau 2019-08-01 12:25:57 +00:00
pref bug 1568865: remote: add missing license headers; r=remote-protocol-reviewers,jdescottes 2019-07-25 15:41:12 +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 1563690 - Make Target class save a list of Connection rather than Session. r=remote-protocol-reviewers,jdescottes 2019-07-18 16:39:11 +00:00
targets Bug 1568581. Stop mixing XULWindow and Window instances in TabObserver.jsm. r=ochameau 2019-07-24 16:43:26 +00:00
test bug 1563533: remote: add toDataURL document inlining helper; r=remote-protocol-reviewers,jdescottes 2019-08-02 16:26:01 +00:00
Connection.jsm Bug 1563690 - Make Target class save a list of Connection rather than Session. r=remote-protocol-reviewers,jdescottes 2019-07-18 16:39:11 +00:00
Error.jsm Bug 1561435 - Format remote/, a=automatic-formatting 2019-07-05 10:56:48 +02:00
jar.mn Bug 1545724 - Add support for javascriptDialog APIs in Page domain r=remote-protocol-reviewers,whimboo,ochameau 2019-08-01 12:25:57 +00:00
JSONHandler.jsm Bug 1561435 - Format remote/, a=automatic-formatting 2019-07-05 10:56:48 +02:00
Log.jsm Bug 1561435 - Format remote/, a=automatic-formatting 2019-07-05 10:56:48 +02:00
moz.build Bug 1536862 - Register RemoteAgent JS XPCOM by using new registration method. r=ato 2019-06-26 20:25:43 +00:00
Observer.jsm Bug 1561435 - Format remote/, a=automatic-formatting 2019-07-05 10:56:48 +02:00
Protocol.jsm bug 1568865: remote: add missing license headers; r=remote-protocol-reviewers,jdescottes 2019-07-25 15:41:12 +00:00
README bug 1533831: remote: include remote agent in default build; r=firefox-build-system-reviewers,chmanchester 2019-04-24 17:18:22 +00:00
RecommendedPreferences.jsm Bug 1561435 - Format remote/, a=automatic-formatting 2019-07-05 10:56:48 +02:00
RemoteAgent.conf Bug 1536862 - Register RemoteAgent JS XPCOM by using new registration method. r=ato 2019-06-26 20:25:43 +00:00
RemoteAgent.jsm Bug 1563689 - Release DOM event listeners set on top level windows. r=remote-protocol-reviewers,jdescottes 2019-07-18 09:48:18 +00:00
Sync.jsm Bug 1561435 - Format remote/, a=automatic-formatting 2019-07-05 10:56:48 +02:00

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