Bug 1958422 Comment 3 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

We aren't passing the domain to the `options` [here](https://searchfox.org/mozilla-central/rev/601256c3cc6f397b018995810fd3f586570f50ee/dom/cookiestore/CookieStore.cpp#475), this is maybe expected because we don't explicitly mention the domain when calling `await cookieStore.delete("thing")`. Maybe we should update the `options.domain` with the principal's host (not base domain) somewhere around [here](https://searchfox.org/mozilla-central/rev/601256c3cc6f397b018995810fd3f586570f50ee/dom/cookiestore/CookieStore.cpp#510,517) since the validate domain function is just getting a free pass [here](https://searchfox.org/mozilla-central/rev/601256c3cc6f397b018995810fd3f586570f50ee/dom/cookiestore/CookieStore.cpp#108)
We aren't passing the domain to the `options` [in the Delete()](https://searchfox.org/mozilla-central/rev/601256c3cc6f397b018995810fd3f586570f50ee/dom/cookiestore/CookieStore.cpp#475), this is maybe expected because we don't explicitly mention the domain when calling `await cookieStore.delete("thing")`. Maybe we should update the `options.domain` with the principal's host (not base domain) somewhere around [here](https://searchfox.org/mozilla-central/rev/601256c3cc6f397b018995810fd3f586570f50ee/dom/cookiestore/CookieStore.cpp#510,517) since the validate domain function is just getting a free pass [due to the empty string](https://searchfox.org/mozilla-central/rev/601256c3cc6f397b018995810fd3f586570f50ee/dom/cookiestore/CookieStore.cpp#108)

Back to Bug 1958422 Comment 3