generated from JetBrains/compose-multiplatform-template
-
Notifications
You must be signed in to change notification settings - Fork 124
Open
Description
The cookie manager accessible through WebViewState.cookieManager() is not the same one used by the web view itself.
- It is possible to read and write persistent cookies using
WebViewState.cookieManager(), but they won't be used by the WebView - The WebView can read and write cookies, but they won't be accessible through
WebViewState.cookieManager()and will not persist
This means that cookies cannot be read or written as expected on desktop ( #152 )
Explanation:
WebViewState.cookieManager()is backed byCefCookieManager.getGlobalManager()which stores cookies only forCefRequestContext.getGlobalContext()[DesktopCookieManager.kt]WebView.defaultWebViewFactory(param)uses a customCefRequestContext("createModifiedRequestContext") which differs from the global one [WebView.desktop.kt] [CefRequestExt.kt]
Metadata
Metadata
Assignees
Labels
No labels