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

Some fixes and improvements #22

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
Open

Conversation

yoori
Copy link

@yoori yoori commented Nov 21, 2024

I hope, that now we have place to collect fixes for nodriver.
I'm trying to stabilize it for flare-bypasser and am debug now an intermittent issue with CDP replies being lost - case when some call can be timeouted (navigate, screenshot), but internally looks like listening loop don't see answer for CDP command, but recv it when we start browser closing (by timeout = 60) ...

Here few fixes and improvements, that I need, and I think - they are useful for the project:

cookie parsing fix (CookieJar.get_all don't work for chrome >=129)
websockets 14.0 adaptation
don't use __count__ for CDP message id generation (it is strange) and never drop it to zero - I'm putting this part in order to prevent the loss of answers due to repetitions of CDP message id.
some little changes

@yoori yoori mentioned this pull request Nov 21, 2024
@stephanlensky
Copy link
Owner

👋 Hey @yoori, the code to fix websockets 14.0 needed a bit more work, so I thought it was fastest to just fix myself. Your PR was helpful for this, so I gave you credit here. Thank you!

I know there are also some other changes in this PR that I would still be happy to merge. Please feel free to rebase off of latest main and I'll take a final look.

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.

2 participants