зеркало из https://github.com/mozilla/gecko-dev.git
2618f63395
By using loadSubScript() instead of injecting a script node into the hidden window, the content of chrome-remote-interface.js can be cached. Only the first load will take about 150ms, each test afterward will only have to spend about 30ms in getCDP(). Differential Revision: https://phabricator.services.mozilla.com/D53073 --HG-- extra : moz-landing-system : lando |
||
---|---|---|
.. | ||
doc | ||
domains | ||
server | ||
sessions | ||
targets | ||
test | ||
.gitignore | ||
Connection.jsm | ||
Error.jsm | ||
JSONHandler.jsm | ||
Log.jsm | ||
Observer.jsm | ||
Protocol.jsm | ||
README | ||
RecommendedPreferences.jsm | ||
RemoteAgent.conf | ||
RemoteAgent.jsm | ||
Sync.jsm | ||
TabManager.jsm | ||
WindowManager.jsm | ||
jar.mn | ||
mach_commands.py | ||
moz.build |
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. 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