mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-12 00:50:40 +00:00
cb448c5095
Currently, we don't allow keyboard events synthesized for tests retrieve native key bindings in content process. However, due to this, we cannot test keyboard navigation, deleting per word, etc on Linux and macOS either with mochitest or WPT. For making better compatibility with the other browsers, we should write WPT more with the test driver. Therefore, we should allow keyboard events synthesized for tests retrieve native key bindings. On the other hand, if we make them retrieve customized keyboard shortcuts in the environment, some developers may not be able to run tests locally without resetting their customization. Therefore, this patch makes `NativeKeyBindings` set "standard" shortcut keys on the platform instead of retrieving actual shortcut key results. If referring the default shortcut key bindings is not good thing for WebDriver/CDP, perhaps, `TextInputProcessor` should have a new flag which can refer customized shortcut keys even in content process. But I think that it should be done in another bug because some edit commands are mapped forcibly like this patch. https://searchfox.org/mozilla-central/rev/c03e8de87cdb0ce0378c0886d3c0ce8bbf9dc44e/remote/domains/parent/Input.jsm#82-102 Differential Revision: https://phabricator.services.mozilla.com/D102877 |
||
---|---|---|
.. | ||
doc | ||
domains | ||
observers | ||
server | ||
sessions | ||
startup | ||
targets | ||
test | ||
.gitignore | ||
Cargo.toml | ||
components.conf | ||
Connection.jsm | ||
Error.jsm | ||
error.rs | ||
Format.jsm | ||
jar.mn | ||
JSONHandler.jsm | ||
lib.rs | ||
Log.jsm | ||
mach_commands.py | ||
moz.build | ||
nsIRemoteAgent.idl | ||
Protocol.jsm | ||
puppeteer-expected.json | ||
README | ||
RecommendedPreferences.jsm | ||
remote_agent.rs | ||
RemoteAgent.jsm | ||
StreamRegistry.jsm | ||
Sync.jsm | ||
TabManager.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. It is available in Firefox Nightly and is started this way: % ./mach run --remote-debugging-port