Skip to content

fix(macos): persist CEF cookies via global request context#369

Open
COCPORN wants to merge 1 commit intoblackboardsh:mainfrom
COCPORN:fix/cef-cookie-persistence
Open

fix(macos): persist CEF cookies via global request context#369
COCPORN wants to merge 1 commit intoblackboardsh:mainfrom
COCPORN:fix/cef-cookie-persistence

Conversation

@COCPORN
Copy link
Copy Markdown

@COCPORN COCPORN commented Apr 8, 2026

Summary

  • CefRequestContext::CreateContext with a custom cache_path fails in Chrome runtime mode ("Cannot create profile at path"). Switches to CefRequestContext::GetGlobalContext() which persists cookies to the default cache location.
  • Adds partition option passthrough to BrowserWindow so the partition identifier reaches the native layer.

Test plan

  • Verified Clerk auth session persists across app restarts with CEF renderer
  • Verified no regression for WKWebView windows

🤖 Generated with Claude Code

CefRequestContext::CreateContext with custom cache_path fails in Chrome
runtime with "Cannot create profile at path". Use the global request
context for persistent partitions instead — it already has a working
profile at root_cache_path/Default with proper cookie persistence.

Also pass partition option through BrowserWindow to BrowserView so
apps can specify partition when creating windows.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants