Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow Delete All Cookies to delete *all* browser cookies, regardless of the current domain #1426

Open
sidonath opened this issue May 28, 2019 · 0 comments

Comments

@sidonath
Copy link

After #1149 was applied it's not clear whether "Delete All Cookies" should delete all cookies for the current domain/origin, or if it should delete all cookies for all domains stored by the browser.

Chrome and Firefox seem to treat this differently: Chrome will delete all cookies, regardless of the current address, but Firefox will delete only those cookies associated with the current domain.

The Firefox behavior causes a race condition when resetting a browser session in tests. In our case, using Capybara (please see the related issue), we delete cookies and then navigate to about:blank. Sometimes, after cookies have been cleared, a long-running ajax request sets a new cookie just before the browser leaves the page for about:blank. Once we return to the same domain we cannot be sure that the browser didn't set any cookies (and that leads to flaky test failures).

It would help to clarify in spec that the browser should delete all cookies, regardless of the current address (i.e. to standardize Chrome behavior). Alternatively, a new API endpoint could be added that explicitly deletes all browser cookies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant