A few changes in the proxified-containers object

This commit is contained in:
Andrea Marchesini
2021-10-22 16:46:40 +02:00
parent 9cf2d765aa
commit ec933cf730
3 changed files with 50 additions and 110 deletions
+5 -2
View File
@@ -199,8 +199,11 @@ window.assignManager = {
}
const tab = await browser.tabs.get(requestInfo.tabId);
const proxy = await proxifiedContainers.retrieveFromBackground(tab.cookieStoreId);
return proxy;
const result = await proxifiedContainers.retrieve(tab.cookieStoreId);
if (result) {
return result.proxy;
}
return Utils.DEFAULT_PROXY;
},
// Before a request is handled by the browser we decide if we should