WKHTTPCookieStore.setCookie should flush the cookies to disk before calling completion handler when we are using the UIProcess's default cookie storage
Created attachment 402847 [details] Patch
Committed r263551: <https://trac.webkit.org/changeset/263551> All reviewed patches have been landed. Closing bug and clearing flags on attachment 402847 [details].
<rdar://problem/64789854>
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
Reverting in https://bugs.webkit.org/show_bug.cgi?id=215530