[Webkit-unassigned] [Bug 219872] All our cookies get randomly deleted from the NSHTTPCookieStorage. Could be a cookie sync issue between NSHTTPCookieStorage and WKHTTPCookieStore.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Dec 14 17:58:03 PST 2020


https://bugs.webkit.org/show_bug.cgi?id=219872

--- Comment #5 from exu at linkedin.com ---
(In reply to Geoffrey Garen from comment #4)
> By default, there is no connection between the WKHTTPCookieStore in a given
> WebView and the NSHTTPCookieStorage in an app. So I wouldn't expect activity
> in a WebView to set or delete cookies in an app's NSHTTPCookieStorage.
> 
> Can you share some sample code showing how the WebView's WKWebsiteDataStore
> and WKWebViewConfiguration were initialized?

Here is the sample code:
let config = WKWebViewConfiguration()
let webView = WKWebView(frame: .zero, configuration: config)

We have seen that there seems to be some automatic undocumented 2-way sync happening between the app’s shared NSHTTPCookieStorage and the default persistent WKWebsiteDataStore. We don’t have any code to manually sync and yet cookies are shared both ways.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20201215/99e865d9/attachment.htm>


More information about the webkit-unassigned mailing list