mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-19 00:05:36 +00:00
c4d142e772
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 |
||
---|---|---|
.. | ||
doc | ||
domains | ||
pref | ||
server | ||
sessions | ||
targets | ||
test | ||
Connection.jsm | ||
Error.jsm | ||
jar.mn | ||
JSONHandler.jsm | ||
Log.jsm | ||
moz.build | ||
Observer.jsm | ||
Protocol.jsm | ||
README | ||
RecommendedPreferences.jsm | ||
RemoteAgent.conf | ||
RemoteAgent.jsm | ||
Sync.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