Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1907570 - [devtools] Retrieve cookies for a given host from diffe…
…rent jars. r=timhuang,devtools-reviewers,ochameau This patch changes how we're retrieving cookies for a given host. We used to retrieve the first window we found for the host and get its associated `originAttributes` to pass them to `Services.cookies.getCookiesFromHost`. With CHIPS, windows with the same host can have different `originAttributes` (more precisely, different `partitionKey`). This means that in order to retrieve all the cookies for a given host, we need to call `Services.cookies.getCookiesFromHost` with all the different `originAttributes` we can have for the host. This also impacts how we handle editing and removing cookies, as we also need the specific originAttributes linked to the cookie that is being modified/deleted. (note that adding cookies might also be impacted, but by default we put them in the top level document, which should put them in the unpartitioned jar). A test is added to try to cover all this changes Differential Revision: https://phabricator.services.mozilla.com/D210169 UltraBlame original commit: 47e971e1e3f489307b0131525e3704c337d8759a
- Loading branch information