RESOLVED FIXED 169797
Make HTTPCookieStorage operate in the UIProcess in absence of a WebProcessPool
https://bugs.webkit.org/show_bug.cgi?id=169797
Summary Make HTTPCookieStorage operate in the UIProcess in absence of a WebProcessPool
Brady Eidson
Reported 2017-03-16 16:29:01 PDT
Make HTTPCookieStorage operate in the UIProcess in absence of a WebProcessPool Currently it creates transient process pools, just to create networking processes, just for cookie operations. That's nuts - It should operate in the UIProcess and then just flush cookies if an associated WebProcessPool comes into existence.
Attachments
Patch (17.23 KB, patch)
2017-03-17 13:48 PDT, Brady Eidson
no flags
Patch (17.23 KB, patch)
2017-03-17 15:42 PDT, Brady Eidson
no flags
Radar WebKit Bug Importer
Comment 1 2017-03-16 16:29:29 PDT
Brady Eidson
Comment 2 2017-03-17 13:48:13 PDT
Alex Christensen
Comment 3 2017-03-17 14:04:03 PDT
Comment on attachment 304819 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=304819&action=review > Source/WebCore/ChangeLog:8 > + No new tests (No behavior change). I'm not entirely convinced. > Source/WebKit2/UIProcess/API/APIHTTPCookieStore.cpp:63 > + callOnMainThread([completionHandler = WTFMove(completionHandler), allCookies = WTFMove(allCookies)]() { Cookies contain a lot of Strings. Should we do an isolated copy here?
Brady Eidson
Comment 4 2017-03-17 14:09:26 PDT
(In reply to comment #3) > Comment on attachment 304819 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=304819&action=review > > > Source/WebCore/ChangeLog:8 > > + No new tests (No behavior change). > > I'm not entirely convinced. I assure you - "Setting cookies without a process pool" didn't work before, and still doesn't work after this patch. :) It just gets us closer. We can chat in person about what's left. > > > Source/WebKit2/UIProcess/API/APIHTTPCookieStore.cpp:63 > > + callOnMainThread([completionHandler = WTFMove(completionHandler), allCookies = WTFMove(allCookies)]() { > > Cookies contain a lot of Strings. Should we do an isolated copy here? I think that'd be more expensive, right? (I'm unsure why you're making the request)
Brady Eidson
Comment 5 2017-03-17 15:42:18 PDT
WebKit Commit Bot
Comment 6 2017-03-17 16:23:42 PDT
Comment on attachment 304829 [details] Patch Clearing flags on attachment: 304829 Committed r214127: <http://trac.webkit.org/changeset/214127>
WebKit Commit Bot
Comment 7 2017-03-17 16:23:47 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.