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

V132: no more incognito mode (cache_path = "" is ignored) #3872

Open
TaurusPrime opened this issue Jan 22, 2025 · 0 comments
Open

V132: no more incognito mode (cache_path = "" is ignored) #3872

TaurusPrime opened this issue Jan 22, 2025 · 0 comments
Labels
bug Bug report

Comments

@TaurusPrime
Copy link

Describe the bug
It's not possible to set in-memory user data. (worked in V126)

To Reproduce
in cefclient - APIENTRY wWinMain set

CefSettings settings;
CefString(&settings.root_cache_path).FromWString(root_cache_path);
CefString(&settings.cache_path).FromWString(L"");

Expected behavior
In %tmp%/CEF (or root_cache_path if set) there should be only:

  • LocalPrefs.json
  • Dictionaries

But we got

Image

Versions

  • OS: Windows 10
  • CEF Version: 132

Additional context

Also tried:

OnBeforeCommandLineProcessing:
command_line->AppendSwitch("incognito");

OnContextInitialized added incognito_context to browser_view:

CefRequestContextSettings context_settings;
  CefString(&context_settings.cache_path).FromWString(L"");
  context_settings.persist_session_cookies = false;

  CefRefPtr<CefRequestContext> incognito_context = CefRequestContext::CreateContext(
    context_settings, nullptr);
@TaurusPrime TaurusPrime added the bug Bug report label Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug report
Projects
None yet
Development

No branches or pull requests

1 participant