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_REMOTECOMMAND_OPEN_URICOMMAND_PREVENT_UNLOADCOMMAND_TRACK_EVENTCOMMAND_SET_HREF
Implementation plan
- Introduce message constants for these commands
☝ - Update
MessagePortsControllerto listen for these messages (probably onthis.#webIdeChannel.port1) and handle them appropriately. - Remove these commands from the
mediator-commandspackage. - Update the
vscode-extension-web-ideto remove theseCOMMAND_references and add a newmediator/ipcmodule for executing theipcspecific "commands".
Edited by Paul Slaughter