Move non-auth mediator commands to ipc message port
MR:
Description
There are a set of non-authenticated mediator commands which should be moved to ipc
. These commands depend on running in the main browser context, so we need to escape the extension runtime sandbox.
These commands include:
COMMAND_READY
-
COMMAND_GET_CONFIG
(this one might best be implemented withsecrets
) COMMAND_START_REMOTE
COMMAND_OPEN_URI
COMMAND_PREVENT_UNLOAD
COMMAND_TRACK_EVENT
COMMAND_SET_HREF
Implementation plan
- Introduce message constants for these commands
☝ - Update
MessagePortsController
to listen for these messages (probably onthis.#webIdeChannel.port1
) and handle them appropriately. - Remove these commands from the
mediator-commands
package. - Update the
vscode-extension-web-ide
to remove theseCOMMAND_
references and add a newmediator/ipc
module for executing theipc
specific "commands".
Edited by Paul Slaughter