Page 1 of 1

Incognito mode

Posted: Tue Jul 17, 2018 9:28 am
by dilfich
HI!
Is it possible to create such a regime?

Re: Incognito mode

Posted: Tue Jul 17, 2018 10:17 am
by salvadordf
Yes. You only need to leave GlobalCEFApp.cache blank like this and it will use in memory cache :

Code: Select all

GlobalCEFApp.cache := '';
At this moment there's a known bug in the CEF3 binaries in "incognito mode". Some directories are created in that mode :
https://bitbucket.org/chromiumembedded/ ... nent-cache

If you use the "incognito mode" for too long in your application you will see that it uses a lot of RAM.

Re: Incognito mode

Posted: Tue Jul 17, 2018 5:51 pm
by dilfich
Incognito mode
TempContext := TCefRequestContextRef.New('', 'en', False, False, False, False);
Normal mode
TempContext := TCefRequestContextRef.New('patch_my_cache', 'en', False, False, False, False);
Am I right? So simply... :shock:

Re: Incognito mode

Posted: Tue Jul 17, 2018 6:02 pm
by salvadordf
Yes, that's correct.

Re: Incognito mode

Posted: Tue Jul 17, 2018 6:16 pm
by dilfich
And what is cef_sandbox.lib and how can I use it?

Re: Incognito mode

Posted: Tue Jul 17, 2018 7:49 pm
by salvadordf
If you want to have a sandboxed browser you would have to link that file into your application's EXE.
It's not easy to link "lib" files into Delphi apps and you would probably have to release your application under an open source license to avoid legal problems.

For more information about sandboxed browsers read this :
https://chromium.googlesource.com/chrom ... sandbox.md

For more information about other files in the CEF3 binaries read the README.txt file included in the package.