Bug 213636

Summary: WKHTTPCookieStore.setCookie should flush the cookies to disk before calling completion handler when we are using the UIProcess's default cookie storage
Product: WebKit Reporter: Alex Christensen <achristensen>
Component: New BugsAssignee: Alex Christensen <achristensen>
Status: RESOLVED FIXED    
Severity: Normal CC: beidson, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

Alex Christensen
Reported 2020-06-25 20:58:59 PDT
WKHTTPCookieStore.setCookie should flush the cookies to disk before calling completion handler when we are using the UIProcess's default cookie storage
Attachments
Patch (6.80 KB, patch)
2020-06-25 20:59 PDT, Alex Christensen
no flags
Alex Christensen
Comment 1 2020-06-25 20:59:53 PDT
EWS
Comment 2 2020-06-25 21:36:24 PDT
Committed r263551: <https://trac.webkit.org/changeset/263551> All reviewed patches have been landed. Closing bug and clearing flags on attachment 402847 [details].
Radar WebKit Bug Importer
Comment 3 2020-06-25 21:37:13 PDT
Alex Christensen
Comment 4 2020-08-14 18:04:42 PDT
Comment on attachment 402847 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=402847&action=review > Source/WebKit/UIProcess/API/Cocoa/APIHTTPCookieStoreCocoa.mm:42 > + ASSERT(RunLoop::isMain()); > + [[NSHTTPCookieStorage sharedHTTPCookieStorage] _saveCookies:makeBlockPtr([completionHandler = WTFMove(completionHandler)]() mutable { This being on the main thread caused hangs which I believe were resolved with http://trac.webkit.org/r264613
Alex Christensen
Comment 5 2020-08-14 18:44:23 PDT
Note You need to log in before you can comment on or make changes to this bug.