RESOLVED FIXED 216493
Move cookie flushing SPI from WKProcessPool to WKHTTPCookieStore
https://bugs.webkit.org/show_bug.cgi?id=216493
Summary Move cookie flushing SPI from WKProcessPool to WKHTTPCookieStore
Alex Christensen
Reported 2020-09-14 12:49:27 PDT
Move cookie flushing SPI from WKProcessPool to WKHTTPCookieStore
Attachments
Patch (20.32 KB, patch)
2020-09-14 12:54 PDT, Alex Christensen
no flags
Patch (22.46 KB, patch)
2020-09-14 14:37 PDT, Alex Christensen
cdumez: review+
Alex Christensen
Comment 1 2020-09-14 12:54:04 PDT
Alex Christensen
Comment 2 2020-09-14 12:54:07 PDT
Alex Christensen
Comment 3 2020-09-14 13:45:04 PDT
Comment on attachment 408737 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=408737&action=review > Source/WebKit/UIProcess/API/Cocoa/WKHTTPCookieStorePrivate.h:30 > - (void)_setCookieAcceptPolicy:(NSHTTPCookieAcceptPolicy)policy completionHandler:(void (^)())completionHandler WK_API_AVAILABLE(macos(WK_MAC_TBA), ios(WK_IOS_TBA)); This also needs a void inside the () to be able to be compiled from ObjC (not ObjC++). I'll add when committing this.
Alex Christensen
Comment 4 2020-09-14 13:50:56 PDT
Comment on attachment 408737 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=408737&action=review > Source/WebKit/ChangeLog:11 > + rdar://problem/68749055 tracks adoption in Safari, which I will land within an hour of landing this to avoid cookie regressions. rdar://problem/68872711 is the correct radar. Will fix before landing.
Chris Dumez
Comment 5 2020-09-14 14:14:46 PDT
Comment on attachment 408737 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=408737&action=review > Source/WebKit/NetworkProcess/cocoa/NetworkProcessCocoa.mm:228 > + platformSyncAllCookies(WTFMove(completionHandler)); Since this is now on the HTTPCookieStore (which is associated with a single data store AFAIK), don't we want to sync cookies for the cookie store 's session only instead of doing it for ALL sessions?
Alex Christensen
Comment 6 2020-09-14 14:37:28 PDT
Alex Christensen
Comment 7 2020-09-14 14:50:51 PDT
Note You need to log in before you can comment on or make changes to this bug.