Skip to content

Fix CookieVisitor "Must be called on the IO thread" assertion (fixes #683)#693

Open
linesight wants to merge 1 commit into
cztomczak:cefpython147from
linesight:fix-683-cookie-visitor-ui-thread
Open

Fix CookieVisitor "Must be called on the IO thread" assertion (fixes #683)#693
linesight wants to merge 1 commit into
cztomczak:cefpython147from
linesight:fix-683-cookie-visitor-ui-thread

Conversation

@linesight

Copy link
Copy Markdown
Contributor

Fix #683
Update the assert to TID_UI and fix the related API docs and example docstring that referred to the IO thread.

…ixes cztomczak#683)

CEF runs the cookie visitor callback on the UI thread, not the IO thread (ExecuteVisitor in cookie_manager_impl.cc is posted to CEF_UIT). The CookieVisitor_Visit assertion still required TID_IO, so every cookie visit raised "AssertionError: Must be called on the IO thread".

Update the assert to TID_UI and fix the related API docs and example docstring that referred to the IO thread.
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.

1 participant