When I do this in a render process function called from ::OnLoadingStateChange when isLoading==0, the process dies before the second log entry is written:
- Code: Select all
LogTRACE0("VisiteCookiesAsync");
CefRefPtr<CefCookieManager> manager = CefCookieManager::GetGlobalManager();
LogTRACE("manager = %u", manager);
So do I need to send a task to the browser process, asking it to run my CookieVisitor?
I'm just trying to read the current set of cookies set for the domain for the current browser object, so if there is an easier way to do that from OnLoadingStateChange() and OnBeforeNavigation() than running a CookieVisitor that would be even better.
I checked CefClient but didn't see any examples of reading cookies.