From 4e730a0490b7094295858f9aa6137beabf1181ea Mon Sep 17 00:00:00 2001 From: randomshell Date: Wed, 6 May 2020 12:00:47 +0000 Subject: [PATCH] Fix previous commit The value should be null to always get all cookies and not only first-party isolation cookies. From https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/cookies: "When first-party isolation is off, the firstPartyDomain parameter is optional and defaults to an empty string. A non-empty string can be used to retrieve or modify first-party isolation cookies." --- src/drivers/webextension/js/driver.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/drivers/webextension/js/driver.js b/src/drivers/webextension/js/driver.js index ea1f219eb..84e4eae35 100644 --- a/src/drivers/webextension/js/driver.js +++ b/src/drivers/webextension/js/driver.js @@ -146,7 +146,7 @@ browser.runtime.onConnect.addListener((port) => { const url = wappalyzer.parseUrl(port.sender.tab ? port.sender.tab.url : ''); - const cookies = await browser.cookies.getAll({ domain: `.${url.hostname}`, firstPartyDomain: `.${url.hostname}` }); + const cookies = await browser.cookies.getAll({ domain: `.${url.hostname}`, firstPartyDomain: null }); let response;