WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
207546
WKHttpStore does NOT sync until WKProcessPool is destroyed
https://bugs.webkit.org/show_bug.cgi?id=207546
Summary
WKHttpStore does NOT sync until WKProcessPool is destroyed
Brandon
Reported
2020-02-11 06:46:21 PST
When a web-page sets cookies, the cookies are reflected in the next request from the WKWebView. This works fine. However, if we try to access the cookies from WKWebView via the WKHttpCookieStore or from NSHTTPCookieStorage or from WKWebsiteDataStore. fetchDataRecordsOfTypes:completionHandler The cookies are NOT there. However, if we set the `WKProcessPool` to a new process pool, and then attempt to access the cookies, they are immediately flushed to disk and can be accessed.
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2020-02-11 09:22:31 PST
<
rdar://problem/59350764
>
Sihui Liu
Comment 2
2020-02-14 15:07:45 PST
(In reply to Brandon from
comment #0
)
> When a web-page sets cookies, the cookies are reflected in the next request > from the WKWebView. This works fine. However, if we try to access the > cookies from WKWebView via the WKHttpCookieStore or from NSHTTPCookieStorage > or from WKWebsiteDataStore. fetchDataRecordsOfTypes:completionHandler > > The cookies are NOT there. However, if we set the `WKProcessPool` to a new > process pool, and then attempt to access the cookies, they are immediately > flushed to disk and can be accessed.
Can you attach a test app for us to look into?
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug