Bug 185666
Summary: | Cannot get persistent cookie from file when using custom persistent WKWebsiteDataStore without processpool | ||
---|---|---|---|
Product: | WebKit | Reporter: | Sihui Liu <sihui_liu> |
Component: | New Bugs | Assignee: | Sihui Liu <sihui_liu> |
Status: | RESOLVED CONFIGURATION CHANGED | ||
Severity: | Normal | CC: | ggaren, sihui_liu, webkit-bug-importer |
Priority: | P2 | Keywords: | InRadar |
Version: | WebKit Nightly Build | ||
Hardware: | Unspecified | ||
OS: | Unspecified |
Sihui Liu
Create a custom persistent WKWebsiteDataStore with specified cookieStorageFile, set a persistent cookie through Cookie API. Then Create another custom persistent WKWebsiteDataStore with same cookieStorageFile, and call getAllCookies from this store, we would get nothing.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Geoffrey Garen
Similarly, two uses of the defaultDataStore will not persist cookie changes across process launches.
Similarly, if an app uses a WKWebView and the WKWebView stores some data -- cookies, databases, whatever -- then when the app relaunches I think its defaultDataStore will not be able to get or remove its data, until you first load a webpage.
Radar WebKit Bug Importer
<rdar://problem/40343792>
Radar WebKit Bug Importer
<rdar://problem/40343788>
Sihui Liu
Currently all WKHTTPCookieStores fetch cookies via network process, and on Cocoa platform network process is a singleton, so we will be able to get cookies from different stores with the same cookie file path.