MozillaVPN Integration

This commit is contained in:
Lesley Norton
2021-10-20 12:52:41 -05:00
parent de80fe9050
commit 1c0f2d8c5c
19 changed files with 2656 additions and 394 deletions
+13 -4
View File
@@ -83,18 +83,27 @@ const messageHandler = {
break;
case "reloadInContainer":
response = assignManager.reloadPageInContainer(
m.url,
m.currentUserContextId,
m.newUserContextId,
m.url,
m.currentUserContextId,
m.newUserContextId,
m.tabIndex,
m.active,
true
);
break;
case "mozillaVpnAttemptPort":
MozillaVPN_Background.maybeInitPort();
break;
case "getMozillaVpnServers":
MozillaVPN_Background.postToApp("servers");
break;
case "getMozillaVpnStatus":
response = MozillaVPN_Background.postToApp("status");
break;
case "assignAndReloadInContainer":
tab = await assignManager.reloadPageInContainer(
m.url,
m.currentUserContextId,
m.currentUserContextId,
m.newUserContextId,
m.tabIndex,
m.active,