Fix of privacy leaks caused by non-page requests

This commit is contained in:
Samuel Crypto
2019-08-01 13:30:35 -04:00
parent 15d8f31b26
commit 1ae63bc489
2 changed files with 19 additions and 1 deletions
+3 -1
View File
@@ -118,8 +118,10 @@ const assignManager = {
},
async handleProxifiedRequest(requestInfo) {
// The following blocks potentially dangerous requests for privacy that come without a tabId
if(requestInfo.tabId === -1)
return Utils.DEFAULT_PROXY;
return Utils.getBogusProxy();
const tab = await browser.tabs.get(requestInfo.tabId);
const proxy = await proxifiedContainers.retrieveFromBackground(tab.cookieStoreId);