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

Cookies are automatically deleted due to CEF bug. How to update plugin with newer CEF version? #60

Closed
vle07 opened this issue Apr 3, 2021 · 2 comments
Labels

Comments

@vle07
Copy link

vle07 commented Apr 3, 2021

I think the CEF version used for this plugin has a bug that automatically deletes cookies, so cookies can't persist between sessions: https://bitbucket.org/chromiumembedded/cef/issues/2890/all-the-cookies-are-deleted-automatically

Are there any plans to update the CEF version? I can also try updating it myself, but it seems really involved. So far, I've download a recent CEF build from: https://cef-builds.spotifycdn.com/index.html. Then I've replaced the cefsimple test project with the blubrowser project here: https://github.com/getnamo/blubrowser. Using CMake, I generate the project files. I'm a little unclear about the /MT or /MD outputs. Do I need to build the solution twice, once with each configuration to generate all of the necessary files? If you have any tips or resources for updating the code to get the solution to build (and what to do after that), it'd be appreciated. This is a great plugin and is much easier to extend than the default UE4 web browser. Thanks!

Edit: Seems like cookies work in a packaged project when setting "persist_session_cookies" and "persist_user_preferences" to true. Not sure why it doesn't work when using the UE4 editor.

@getnamo getnamo added the bug label Apr 5, 2021
@getnamo
Copy link
Owner

getnamo commented Apr 5, 2021

Interesting bug. I do occasionally re-sync CEF builds, but it won't be more often than ~ once every 6months. If you need an update sooner, https://github.com/getnamo/blubrowser is the correct repo to do it. You do need to change some settings in the .sln manually the /MT checkbox can be found under blu_ue4_process project Configuration Properties-> C/C++->Code Generation-> Runtime Library

I usually do a build all and then copy the required libs in Win/lib and all the updated process under Win/shipping. Essentially ensure Plugins\BLUI\ThirdParty\cef\Win is up to date with newest cef build and update your headers and it should work.

@getnamo
Copy link
Owner

getnamo commented Apr 8, 2023

Closing in favor of #81

@getnamo getnamo closed this as completed Apr 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants