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

feat(webdriver): support Page.deleteCookie() for WebDriver BiDi #12031

Merged
merged 12 commits into from Mar 4, 2024

Conversation

sadym-chromium
Copy link
Collaborator

@sadym-chromium sadym-chromium commented Feb 29, 2024

Implement Page.deleteCookie() via BiDi storage.deleteCookies.

@OrKoN
Copy link
Collaborator

OrKoN commented Feb 29, 2024

Should we extend tests verifying this?

Let's add a test to also understand the cdp behavior better.

Copy link
Collaborator

@OrKoN OrKoN left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably need to enable some tests via TestExpectations

Comment on lines -562 to -564
// TODO: delete cookie before setting them.
// await this.deleteCookie(bidiCookie);

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The scope of set and deleted cookie can be different, so deleting can cause some unwilling side effects. Example: a cookie is set for a specific path, but removed from the whole domain.

@sadym-chromium sadym-chromium force-pushed the sadym/delete-cookie branch 2 times, most recently from 4c2d036 to 0304512 Compare March 4, 2024 12:06
@sadym-chromium sadym-chromium marked this pull request as ready for review March 4, 2024 13:53
@OrKoN OrKoN changed the title feat: BiDi Page.deleteCookie() feat(webdriver): support Page.deleteCookie() for WebDriver BiDi Mar 4, 2024
test/TestExpectations.json Outdated Show resolved Hide resolved
test/TestExpectations.json Outdated Show resolved Hide resolved
@sadym-chromium sadym-chromium enabled auto-merge (squash) March 4, 2024 14:35
@sadym-chromium sadym-chromium merged commit 7fe22b5 into main Mar 4, 2024
38 checks passed
@sadym-chromium sadym-chromium deleted the sadym/delete-cookie branch March 4, 2024 14:38
@release-please release-please bot mentioned this pull request Mar 4, 2024
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

Successfully merging this pull request may close these issues.

None yet

2 participants