Fix eraseCookies domain bug and expand tests
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Skipped Deployment
| Name | Status | Preview | Comments | Updated (UTC) |
|---|---|---|---|---|
| cookieconsent-docs | ⬜️ Ignored (Inspect) | Visit Preview | Aug 14, 2024 2:07pm |
Deploy Preview for cookieconsentv3-playground canceled.
| Name | Link |
|---|---|
| Latest commit | bebdd6fdfca3513827deef38f0d21a0ba1dbc991 |
| Latest deploy log | https://app.netlify.com/sites/cookieconsentv3-playground/deploys/66bcb9fec55c270008dafa7d |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
@orestbida You had a comment about this pr here, which I responded to. I'm not sure if there were other things you wish to review or test.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Improvements in this pr:
- Expand docs for
eraseCookies - In
eraseCookiesHelper, don't useerase(cookieName);because that causes a bug, deleting unintended cookies when a domain was specified; rather, allowerase(cookieName, customDomain);to cover the case whencustomDomainis empty - In the
erasefunction, only add a.to the start of the domain if it's nonempty and doesn't already start with a. - Update cookie erasure tests to verify the cookie is there before it's erased
- Add more tests to ensure that a wrong path or wrong domain will not delete a cookie
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Happy new year!
@imnasnainaec Sorry for the late feedback, happy new year too!
LGTM, thanks for the contribution!