mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-27 23:02:20 +00:00
a7d07bbe8d
Rather than copying over the code from EventUtils, load EventUtils.js into event.js. This is slightly complicated by the fact that EventUtils.js depends on the existence of a global named `window`. So instead of loading the script as a normal component, we need to use `loadSubScript` to create an instance of the script with the required window binding (this is similar to the approach the CDP module uses). The actual API changes for mouse events are ~trivial, but for key events things are a little more involved. The code previously (in effect) called synthesizeKey with the virtual keycode as the aKey argument. However EventUtils.js documents this as deprecated, so we switch to providing the actual key, with the `KEY_` prefix for non-printable characters. To make this easier, all the data about various keys from the WebDriver spec is collapsed into a single lookup table, rather than having a table for each interesting property. Differential Revision: https://phabricator.services.mozilla.com/D138449
56 lines
3.8 KiB
Plaintext
56 lines
3.8 KiB
Plaintext
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
remote.jar:
|
|
% content remote %content/
|
|
content/components/Marionette.jsm (components/Marionette.jsm)
|
|
content/components/RemoteAgent.jsm (components/RemoteAgent.jsm)
|
|
|
|
# transport layer (http / websocket)
|
|
content/server/HTTPD.jsm (../netwerk/test/httpserver/httpd.js)
|
|
content/server/WebSocketHandshake.jsm (server/WebSocketHandshake.jsm)
|
|
content/server/WebSocketTransport.jsm (server/WebSocketTransport.jsm)
|
|
|
|
# shared modules (all protocols)
|
|
content/shared/Format.jsm (shared/Format.jsm)
|
|
content/shared/Log.jsm (shared/Log.jsm)
|
|
content/shared/MobileTabBrowser.jsm (shared/MobileTabBrowser.jsm)
|
|
content/shared/Navigate.jsm (shared/Navigate.jsm)
|
|
content/shared/RecommendedPreferences.jsm (shared/RecommendedPreferences.jsm)
|
|
content/shared/Stack.jsm (shared/Stack.jsm)
|
|
content/shared/Sync.jsm (shared/Sync.jsm)
|
|
content/shared/TabManager.jsm (shared/TabManager.jsm)
|
|
content/shared/WebSocketConnection.jsm (shared/WebSocketConnection.jsm)
|
|
content/shared/WindowManager.jsm (shared/WindowManager.jsm)
|
|
content/shared/listeners/BrowsingContextListener.jsm (shared/listeners/BrowsingContextListener.jsm)
|
|
content/shared/listeners/ConsoleAPIListener.jsm (shared/listeners/ConsoleAPIListener.jsm)
|
|
content/shared/listeners/ConsoleListener.jsm (shared/listeners/ConsoleListener.jsm)
|
|
|
|
# shared modules (messagehandler architecture)
|
|
content/shared/messagehandler/Errors.jsm (shared/messagehandler/Errors.jsm)
|
|
content/shared/messagehandler/MessageHandler.jsm (shared/messagehandler/MessageHandler.jsm)
|
|
content/shared/messagehandler/MessageHandlerRegistry.jsm (shared/messagehandler/MessageHandlerRegistry.jsm)
|
|
content/shared/messagehandler/Module.jsm (shared/messagehandler/Module.jsm)
|
|
content/shared/messagehandler/ModuleCache.jsm (shared/messagehandler/ModuleCache.jsm)
|
|
content/shared/messagehandler/RootMessageHandler.jsm (shared/messagehandler/RootMessageHandler.jsm)
|
|
content/shared/messagehandler/RootMessageHandlerRegistry.jsm (shared/messagehandler/RootMessageHandlerRegistry.jsm)
|
|
content/shared/messagehandler/WindowGlobalMessageHandler.jsm (shared/messagehandler/WindowGlobalMessageHandler.jsm)
|
|
content/shared/messagehandler/sessiondata/SessionData.jsm (shared/messagehandler/sessiondata/SessionData.jsm)
|
|
content/shared/messagehandler/sessiondata/SessionDataReader.jsm (shared/messagehandler/sessiondata/SessionDataReader.jsm)
|
|
content/shared/messagehandler/transports/js-window-actors/MessageHandlerFrameActor.jsm (shared/messagehandler/transports/js-window-actors/MessageHandlerFrameActor.jsm)
|
|
content/shared/messagehandler/transports/js-window-actors/MessageHandlerFrameChild.jsm (shared/messagehandler/transports/js-window-actors/MessageHandlerFrameChild.jsm)
|
|
content/shared/messagehandler/transports/js-window-actors/MessageHandlerFrameParent.jsm (shared/messagehandler/transports/js-window-actors/MessageHandlerFrameParent.jsm)
|
|
content/shared/messagehandler/transports/FrameContextUtils.jsm (shared/messagehandler/transports/FrameContextUtils.jsm)
|
|
content/shared/messagehandler/transports/FrameTransport.jsm (shared/messagehandler/transports/FrameTransport.jsm)
|
|
|
|
# shared modules (WebDriver HTTP / BiDi only)
|
|
content/shared/webdriver/Assert.jsm (shared/webdriver/Assert.jsm)
|
|
content/shared/webdriver/Capabilities.jsm (shared/webdriver/Capabilities.jsm)
|
|
content/shared/webdriver/Errors.jsm (shared/webdriver/Errors.jsm)
|
|
content/shared/webdriver/KeyData.jsm (shared/webdriver/KeyData.jsm)
|
|
content/shared/webdriver/Session.jsm (shared/webdriver/Session.jsm)
|
|
|
|
# imports from external folders
|
|
content/external/EventUtils.js (../testing/mochitest/tests/SimpleTest/EventUtils.js)
|