You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
GetCookieManager sometimes not called due to a race condition. API removed in latest CEF. #429
The GetCookieManager callback doesn't have browser parameter in upstream CEF. This param is set during synchronous browser creation in CreateBrowserSync [1], so it is not immediately available. See comment in request context handler in C++ [2] and the SetBrowser method. Fix needs to be applied in [3] with such code:
changed the title [-]RequestHandler_GetCookieManager throws "Exception: GetCookieManager: CefBrowser reference is NULL" w/ CEF 65.0+[/-][+]GetCookieManager sometimes not called due to a race condition[/+]on May 25, 2018
Fixing the error is not enough, because if browser is NULL then we can't call user callback, as it is assigned to that browser. It must be fixed so that GetCookieManager callback is always called.
changed the title [-]GetCookieManager sometimes not called due to a race condition[/-][+]GetCookieManager sometimes not called due to a race condition. API removed in latest CEF.[/+]on Jan 23, 2020
The GetCookieManager API was removed from upstream CEF. You can no longer create an instance on CefCookieManager, instead you have to create a new instance of CefRequestContext and provide a different cache_path to have a separate cookie store. This and other NetworkService related changes were disucced in upstream: https://bitbucket.org/chromiumembedded/cef/issues/2622/implement-support-for-networkservice
Activity
RequestHandler: fix GetCookieManager: CefBrowser reference is NULL
RequestHandler: fix GetCookieManager: CefBrowser reference is NULL
cztomczak commentedon May 25, 2018
This error happened to me as well when running wxpython.py example.
Fix GetCookieManager 'browser' param NULL exception (#429)
Update GetCookieManager bug and reopen issue (#429)
[-]RequestHandler_GetCookieManager throws "Exception: GetCookieManager: CefBrowser reference is NULL" w/ CEF 65.0+[/-][+]GetCookieManager sometimes not called due to a race condition[/+]cztomczak commentedon May 25, 2018
Fixing the error is not enough, because if browser is NULL then we can't call user callback, as it is assigned to that browser. It must be fixed so that GetCookieManager callback is always called.
[-]GetCookieManager sometimes not called due to a race condition[/-][+]GetCookieManager sometimes not called due to a race condition. API removed in latest CEF.[/+]cztomczak commentedon Jan 23, 2020
The GetCookieManager API was removed from upstream CEF. You can no longer create an instance on CefCookieManager, instead you have to create a new instance of CefRequestContext and provide a different cache_path to have a separate cookie store. This and other NetworkService related changes were disucced in upstream: https://bitbucket.org/chromiumembedded/cef/issues/2622/implement-support-for-networkservice