Network key isolation when the VPN changes state

This commit is contained in:
Andrea Marchesini
2021-10-22 17:25:25 +02:00
parent ec933cf730
commit 37ed2455eb
2 changed files with 33 additions and 7 deletions
+8 -2
View File
@@ -200,10 +200,16 @@ window.assignManager = {
const tab = await browser.tabs.get(requestInfo.tabId);
const result = await proxifiedContainers.retrieve(tab.cookieStoreId);
if (result) {
if (!result || !result.proxy) {
return Utils.DEFAULT_PROXY;
}
if (!result.proxy.mozProxyEnabled) {
return result.proxy;
}
return Utils.DEFAULT_PROXY;
// Let's add the isolation key.
return [{ ...result.proxy, connectionIsolationKey: "" + MozillaVPN_Background.isolationKey }];
},
// Before a request is handled by the browser we decide if we should