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

Fix context.clearCookies #1040

Merged
merged 3 commits into from
Sep 20, 2023
Merged

Fix context.clearCookies #1040

merged 3 commits into from
Sep 20, 2023

Conversation

inancgumus
Copy link
Member

What?

Fixes the "unable to clear cookies permissions: invalid context" error. This error occurs when browserContext.clearCookies is called. See #442 for details.

Why?

The clearCookies method wasn't using the actual CDP connection.

Checklist

  • I have performed a self-review of my code
  • I have added tests for my changes
  • I have commented on my code, particularly in hard-to-understand areas

Related PR(s)/Issue(s)

Closes #442

@inancgumus inancgumus added bug Something isn't working cookies labels Sep 19, 2023
@inancgumus inancgumus self-assigned this Sep 19, 2023
@inancgumus inancgumus requested review from ankur22 and ka3de September 19, 2023 12:10
ankur22
ankur22 previously approved these changes Sep 19, 2023
Copy link
Collaborator

@ankur22 ankur22 left a comment

Choose a reason for hiding this comment

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

Love these seemingly straight forward fixes 🎉 LGTM

Copy link
Collaborator

@ankur22 ankur22 left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Collaborator

@ka3de ka3de left a comment

Choose a reason for hiding this comment

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

Polishing the 🍪 functionality! LGTM.

@inancgumus
Copy link
Member Author

Polishing the 🍪 functionality! LGTM.

Cookies 🍪 🍪!!

@inancgumus inancgumus merged commit e40881f into main Sep 20, 2023
24 checks passed
@inancgumus inancgumus deleted the fix/clear-cookies branch September 20, 2023 07:38
inancgumus added a commit that referenced this pull request Sep 20, 2023
inancgumus added a commit to grafana/k6-docs that referenced this pull request Sep 20, 2023
inancgumus added a commit to grafana/k6-docs that referenced this pull request Sep 20, 2023
ka3de pushed a commit to grafana/k6-docs that referenced this pull request Sep 27, 2023
ka3de pushed a commit to grafana/k6-docs that referenced this pull request Oct 9, 2023
ka3de pushed a commit to grafana/k6-docs that referenced this pull request Oct 9, 2023
ankur22 added a commit that referenced this pull request Oct 19, 2023
Add the missing cdp executor which will be used to perform the cdp
request.

Related: #1040
ankur22 added a commit that referenced this pull request Oct 23, 2023
Add the missing cdp executor which will be used to perform the cdp
request.

Related: #1040
ankur22 added a commit that referenced this pull request Oct 23, 2023
Add the missing cdp executor which will be used to perform the cdp
request.

Related: #1040
ankur22 added a commit that referenced this pull request Oct 23, 2023
Add the missing cdp executor which will be used to perform the cdp
request.

Related: #1040
ankur22 added a commit that referenced this pull request Oct 23, 2023
Add the missing cdp executor which will be used to perform the cdp
request.

Related: #1040
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working cookies
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cookies: Clearing cookies fails
3 participants